peerReadyChangedCallback

GameSpy SDK

peerReadyChangedCallback

Called when a player's ready state changes. All players default to not ready.

typedef void (*peerReadyChangedCallback)(
PEER peer,
const gsi_char * nick,
PEERBool ready,
void * param );
RoutineRequired HeaderDistribution
peerReadyChangedCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
nick
[in] The player's chat nickname
ready
[in] PEERTrue if ready, PEERFalse if not
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerReadyChangedCallback is called whenever a player changes his/her ready status. This can only be done in a StagingRoom room type.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerReadyChangedCallbackpeerReadyChangedCallbackApeerReadyChangedCallbackW

peerReadyChangedCallbackW and peerReadyChangedCallbackA are UNICODE and ANSI mapped versions of peerReadyChangedCallback. The arguments of peerReadyChangedCallbackA are ANSI strings; those of peerReadyChangedCallbackW are wide-character strings.

Section Reference: Gamespy Peer SDK