Key Concepts #
This section provides a baseline understanding of key components used in the Game Instance service. To learn how these components work together, see Game Instance Tasks.
Game Instances #
GameInstance.GameInstance
represents a running game instance, and includes details about the parties, players, and a custom-defined payload of extra game information that will be used to create the game instance.
property/method | description |
---|---|
id | unique GameInstanceId of the game instance |
players | list of players in the game instance |
parties | list of parties in the game instance |
gameServerZone | the game server zone the game instance is using |
inMatchmaking | boolean value indicating whether the GameInstance is currently enrolled within matchmaking to find more players |
removedPlayers | list of players previously removed from the game instance |
ext | the ExtGameInstance created during matchmaking in the NewGameInstance |
Game Parties #
GameInstance.GameParty
represents a party within a game instance.
property | description |
---|---|
id | unique party ID |
players | list of players in the game instance |
ext | the ExtGameParty set by the NewGameInstance and GameInstanceUpdate . Used to store unique data for a party in a game instance. |
Game Players #
GameInstance.GamePlayer
represents a player within a game instance.
property | description |
---|---|
playerId | unique player ID |
socialId | unique social ID |
displayName | player’s public display name |
partyId | party ID for the party the player belongs to |
teamNumber | player’s assigned team number |
ext | the ExtGamePlayer created during matchmaking in the NewGameInstance or GameInstanceUpdate . Used to store unique data for a player in a game instance. |
Game Instance Service Plugins #
The GameInstancePlugin
and GameInstanceMatchmakingPlugin
can be used to prepare custom data to send to the game server, matchmaking service, or player. A list of the customizable data can be found in the Game Instance Methods, Calls, and Events topic.
End of Game Processing #
When game instances end, the Game Instance service processes individual players, as well as the complete game instance end flow. This includes making parallel requests to all services that need to process game instance results, aggregating the respective results, and sending the results notification to players. See End a Game Instance for more details about how Pragma Engine handles game ends.