qr2_playerteamkeycallback_t

GameSpy SDK

qr2_playerteamkeycallback_t

One of the callbacks provided to qr2_init; called when a client requests information about a player key or a team key.

typedef void (*qr2_playerteamkeycallback_t)(
int keyid,
int index,
qr2_buffer_t outbuf,
void * userdata );
RoutineRequired HeaderDistribution
qr2_playerteamkeycallback_t<qr2.h>SDKZIP

Parameters

keyid
[in] The key being requested.
index
[in] The zero-based index of the player or team being requested.
outbuf
[in] The destination buffer for the value information. Use qr2_buffer_add to report the value.
userdata
[in] The same userdata that was passed into qr2_init. You can use this for an object or structure pointer if needed.

Remarks

As a player key callback, this is called when a client requests information about a specific key for a specific player.
As a team key callback, this is called when a client requests the value for a team key.

If you don't have a value for the provided keyid, you should add an empty ("") string to the buffer.