Stats and Tracking SDK Functions

GameSpy SDK

Stats and Tracking SDK Functions

BucketFloatOp

Performs an operation on a bucket for a game.

BucketIntOp

Performs an operation on a bucket for a game.

BucketStringOp

Performs an operation on a bucket for a game.

CloseStatsConnection

Closes the connection to the stats server. You should do this when done with the connection.

FreeGame

Frees a game and its associated structures (including buckets).

GenerateAuth

Used on the CLIENT SIDE to generate an authentication reply (auth_N) for a given challenge and password (CD Key or Profile password)

GetChallenge

Get the challenge value that should be sent to clients for authentication (using GenerateAuth).

GetPlayerIndex

Gets the gstats reference number for a player.

GetTeamIndex

Gets the gstats reference number for a team.

InitStatsAsync

Initializes the Tracking Server Connection Without Blocking.

InitStatsConnection

Initializes the Tracking Server Connection.

InitStatsThink

Continues InitStatsAsync connection attempt.

IsStatsConnected

Returns whether or not you are currently connected to the stats server.

NewGame

Creates a new game for logging and registers it with the stats server.

NewPlayer

Adds a "player" to the game and assigns them an internal player number. Sets their connect time to the number of seconds since theh NewGame function was called.

NewTeam

Adds a "team" to the game and assigns it an internal team number. Sets its connect time to the number of seconds since the NewGame function was called.

RemovePlayer

Removes a "player" from the game and sets their disconnect time to the number of seconds since NewGame was called.

RemoveTeam

Removes a "team" from the game and sets its disconnect time to the number of seconds since NewGame was called.

SendGameSnapShot

Sends a snapshot of information about the current game.

StatsThink

Called to keep connection open