NSpPlayer_GetInfo
You can use theNSpPlayer_GetInfo
function to get information about a player.
OSStatus NSpPlayer_GetInfo ( NSpGameReference inGame, NSpPlayerID inPlayerID, NSpPlayerInfoPtr *outInfo);
inGame
- An opaque reference to your game object.
inPlayerID
- The ID of the player you want information about.
outInfo
- A pointer to
NSpPlayerInfoPtr
which contains a pointer to the player's information data structure you have requested.- function result
- A result code of
noErr
, or a NetSprocket or Open Transport result code.DESCRIPTION
When you are done with the player's information, you should pass theNSpPlayerInfoPtr
back to NetSprocket viaNSpPlayer_ReleaseInfo
.NetSprocket returns an error if the player's information could not be obtained.