qr2_countcallback_t
One of the callbacks provided to qr2_init; called when the SDK needs to get a count of player or teams on the server.
- typedef int (*qr2_countcallback_t)(
- qr2_key_type keytype,
- void * userdata );
Routine | Required Header | Distribution |
---|---|---|
qr2_countcallback_t | <qr2.h> | SDKZIP |
Return Value
The callback should return the count for either the player or team, as indicated.
Parameters
- keytype
- [in] Indicates whether the player or team count is being requested (key_player or key_team)
- userdata
- [in] The same userdata that was passed into qr2_init.
Remarks
If your game does not support teams, return 0 for the count of teams.
Section Reference: Gamespy Query and Reporting 2 SDK
See Also: qr2_init