peerPlayerChangedNickCallback
Callback when a player in one of the rooms changes his/her nick.
- typedef void (*peerPlayerChangedNickCallback)(
- PEER peer,
- RoomType roomType,
- const gsi_char * oldNick,
- const gsi_char * newNick,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
peerPlayerChangedNickCallback | <peer.h> | SDKZIP |
Parameters
- peer
- [in] Initialized peer object
- roomType
- [in] Can be either TitleRoom, GroupRoom or StagingRoom.
- oldNick
- [in] The nickname to be corrected or verified
- newNick
- [in] Corrected nickname. May be the same as oldNick if no issues are detected
- param
- [in] Pointer to user data. This is optional and will be passed unmodified to the callback function.
Remarks
The peerPlayerChangedNickCallback is called for any changes a player makes to his/her nick in a specified room. If in multiple rooms with the same player, this callback will be called for each common room when that player changes his nick.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
peerPlayerChangedNickCallback | peerPlayerChangedNickCallbackA | peerPlayerChangedNickCallbackW |
peerPlayerChangedNickCallbackW and peerPlayerChangedNickCallbackA are UNICODE and ANSI mapped versions of peerPlayerChangedNickCallback. The arguments of peerPlayerChangedNickCallbackA are ANSI strings; those of peerPlayerChangedNickCallbackW are wide-character strings.
Section Reference: Gamespy Peer SDK