NewGame

GameSpy SDK

NewGame

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

statsgame_t NewGame(
int usebuckets );
RoutineRequired HeaderDistribution
NewGame<gstats.h>SDKZIP

Return Value

Returns a pointer to the new game.

Parameters

usebuckets
[in] If using bucket based logging, pass 1, otherwise 0.

Remarks

If you are going to be running more than one game at a time on the host, you will need to store the returned value to pass into the rest of the SDK functions, otherwise you can ignore it and just pass NULL (they will use the last game created).

Section Reference: Gamespy Stats and Tracking SDK