peerPlayerLeftCallback

GameSpy SDK

peerPlayerLeftCallback

Callback when a player leaves a room.

typedef void (*peerPlayerLeftCallback)(
PEER peer,
RoomType roomType,
const gsi_char * nick,
const gsi_char * reason,
void * param );
RoutineRequired HeaderDistribution
peerPlayerLeftCallback<peer.h>SDKZIP

Parameters

peer
[in] Initialized peer object
roomType
[in] Can be either TitleRoom, GroupRoom or StagingRoom.
nick
[in] The player's chat nickname
reason
[in] An optional explanation string
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerPlayerLeftCallback function is called when a player decides to leave the specified room. There is an optional "reason" that could be given.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
peerPlayerLeftCallbackpeerPlayerLeftCallbackApeerPlayerLeftCallbackW

peerPlayerLeftCallbackW and peerPlayerLeftCallbackA are UNICODE and ANSI mapped versions of peerPlayerLeftCallback. The arguments of peerPlayerLeftCallbackA are ANSI strings; those of peerPlayerLeftCallbackW are wide-character strings.

Section Reference: Gamespy Peer SDK