Game Information Structure
Basic information about the game is organized in the game information structure. You can use this structure to maintain and obtain basic information about key elements in the game, including information about players, groups, and topology. The game information structure is defined by the NSpGameInfo data type.
typedef struct NSpGameInfo { UInt32 maxPlayers; UInt32 currentPlayers; UInt32 currentGroups; NSpTopology topology; UInt32 reserved; Str31 name; Str31 password; } NSpGameInfo;Field descriptions
- maxPlayers
- The maximum number of players allowed in the game, as specified in the
inMaxPlayers
parameterNSpGame_Host
function. A value of 0 means there is no limit.- currentPlayers
- The number of players currently participating in the game.
- currentGroups
- The number of groups in the game.
- topology
- A constant describing the topology of the network.
- reserved
- This field is reserved for future use in NetSprocket. Do not modify or rely upon any data in this field.
- name
- The text descriptor identifying the game.
- password
- The password required to join the game. A value of
NULL
means no password is required.