sakeSetProfile
Provides Sake authentication information for the current player.
- void sakeSetProfile(
- SAKE sake,
- int profileId,
- const char * loginTicket );
Routine | Required Header | Distribution |
---|---|---|
sakeSetProfile | <sake.h> | SDKZIP |
Parameters
- sake
- [in] The sake object.
- profileId
- [in] Current player's profile ID.
- loginTicket
- [in] Current player's login ticket, which allows the backend to verify the player is correctly identifying himself.
Remarks
The profile ID and login ticket are both obtained from the GameSpy Presence and Messaging SDK (GP).
The profile ID can be obtained in the callback that is called as a result of logging into GP. A GPConnectResponseArg struct is passed to the callback, and the struct has a member variable “profile” that stores the player’s profile ID. While the player is logged on, the game should call the GP function gpGetLoginTicket.
As with sakeSetGame, sakeSetProfile provides no indication of whether or not the information provided is correct. The backend checks these values and uses them to authenticate the player and, for certain requests, identify which player’s data is being access or updated.
Section Reference: Gamespy Sake SDK
See Also: Presence\GPConnectResponseArg, Presence\gpGetLoginTicket