NSpGroup_Create
You can use theNSpGroup_Create
function to create a new group of players.
OSStatus NSpGroup_Create ( NSpGameReference inGame, NSpGroupID *outGroupID);
inGame
- An opaque reference to your game object.
outGroupID
- A unique number identifying the new group you have created.
- function result
- A result code of
noErr
, or a NetSprocket or Open Transport result code.DESCRIPTION
Once a group is created, the value in theoutGroupID
parameter is distributed to each player in the game. Any player in the game can use theoutGroupID
parameter to send messages to the players in the group.NetSprocket returns an error if NetSprocket could not create the group.