peerPlayerJoinedCallback
Callback when a player joins a room.
- typedef void (*peerPlayerJoinedCallback)(
- PEER peer,
- RoomType roomType,
- const gsi_char * nick,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
peerPlayerJoinedCallback | <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
- param
- [in] Pointer to user data. This is optional and will be passed unmodified to the callback function.
Remarks
The peerPlayerJoinedCallback function gets called when a player joins the specified room. This function can be used as a place for report player joins.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
peerPlayerJoinedCallback | peerPlayerJoinedCallbackA | peerPlayerJoinedCallbackW |
peerPlayerJoinedCallbackW and peerPlayerJoinedCallbackA are UNICODE and ANSI mapped versions of peerPlayerJoinedCallback. The arguments of peerPlayerJoinedCallbackA are ANSI strings; those of peerPlayerJoinedCallbackW are wide-character strings.
Section Reference: Gamespy Peer SDK