Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
Data Structures


Player Left Message Structure

The player left message structure is used to send a message to all players when a player leaves a game. It includes the updated count of players and the ID of the player who has departed. The player left message structure is defined by the NSpPlayerLeftMessage data type.

typedef struct NSpPlayerLeftMessage {
   NSpMessageHeader           header;
   UInt32                     playerCount;
   NSpPlayerID                playerID;
} NSpPlayerLeftMessage;
Field descriptions

header
A valid game object.
playerCount
The number of players left in the game.
playerID
A valid player ID.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996