SC_Game
Instances of SC_Game model the game application.
Games must be registered at https://developer.scoreloop.com, where they are assigned a unique game-id and game secret, and where you can configure additional game properties.
SC_Game provides access to the game identifier and game secret that were assigned by Scoreloop when you registered the game.
Basic Usage:
-
Get an instance of SC_Client .
-
Use the Client object to call SC_Client_GetGame() , which returns the game instance associated with the client.
-
Alternatively,
-
Use the Client object to call SC_Client_GetSession() and retrieve the current session object. An instance of SC_Session is created transparently when the client is created.
-
Use the session instance to call SC_Session_GetGame() . This returns the current game instance.
-
-
Use this game instance to access individual game properties:
-
Call SC_Game_GetIdentifier() to access the game identifier
-
Call SC_Game_GetName() to access the game name
-
Call SC_Game_GetImageUrl() to access the image url
-
Call SC_Game_GetPublisherName() to access the publisher name
-
Call SC_Game_GetVersion() to access the version
-
Call SC_Game_GetDownloadUrl() to access the download url
-
Call SC_Game_GetDescription() to access the game description
-
Call SC_Game_GetModeCount() to access the game mode count
-