Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Managing Groups of Players


NSpGroup_Create

You can use the NSpGroup_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 the outGroupID parameter is distributed to each player in the game. Any player in the game can use the outGroupID parameter to send messages to the players in the group.

NetSprocket returns an error if NetSprocket could not create the group.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996