GameSwift SDK
GameSwift SDK is a Unity toolset created to integrate with GameSwift ID ecosystem. Our SDK is multiplatform - you can build your game for PC, mobile and even browser!
Aside from GameSwift SDK, we are preparing GameSwift analytics.
List of contents:
Getting Started
You can download and check our getting started instructions here.
Assemblies
GameSwift SDK is made of 2 assemblies: Core and ID - each singletonized for the ease of use.
GameSwift SDK Core
Core assembly contains everything you need to properly send requests to the GameSwift ID backend. It's base GameSwiftSdkCore
class derives from Unity MonoBehaviour
class. To send requests it uses UnityWebRequest
class with a help of Unity coroutine system to await for responses.
GameSwift SDK ID
ID assembly on the other hand contains all GameSwift ID backend endpoint implementations and their responses models. If you want to call a specific endpoint you can find it here.
MultipleLoginsBlocker component is also implemented here.
If you have followed instructions in our Getting Started introduction and logged in with one of our recommended methods described there, your AccessToken
and CmdAccessToken
will be stored in this assembly's instance under GameSwiftSdkId.Instance.AccessToken
and GameSwiftSdkId.Instance.CmdAccessToken
fields respectively.
Multiple Logins Blocker
Multiple Logins Blocker is a component that sends heartbeats to the GameSwift ID once every specified number of seconds. Every heartbeat keeps your session alive wich will essentially block any other login and authorization attempts.
There are few requirements for this to work:
- You need to have your client set up to block multiple login attempts.
- You need to have set your
CheckMultipleLoginAttempts
value to true in your SDK configuration file (turned on by default).
You can find further information in our Getting Started introduction.