game-common / pragma.matchmaking / NewGameInstance /
NewGameInstance #
class NewGameInstance(var ext: ExtGameInstance = ExtGameInstance.getDefaultInstance(), var requestExt: ExtBackendCreateRequest = ExtBackendCreateRequest.getDefaultInstance(), var gameServerZone: <ERROR CLASS>)
Represents a successful matchmaking result that will be used to allocate a new game when returned from MatchmakingPlugin.initialize or MatchmakingPlugin.matchParties.
Constructors #
NewGameInstance | fun NewGameInstance(ext: ExtGameInstance = ExtGameInstance.getDefaultInstance(), requestExt: ExtBackendCreateRequest = ExtBackendCreateRequest.getDefaultInstance(), gameServerZone: <ERROR CLASS>) |
Functions #
Name | Summary |
---|---|
Add multiple parties to the NewGameInstance. Always sets the team number of all players within all parties, defaulted to 0. | |
Indicate that after this NewGameInstance is created, it should be added back into matchmaking. | |
Set the ext for a player to be sent to the game instance. | |
Set the ExtGamePlayer payload for a given player in the new game instance. This data will be set on the GameInstance for the specified player and will override any previously set ExtGamePlayer for this player, therefore we recommend setting this once when the NewGameInstance will be returned from the matchmaking plugin. | |
Update multiple players’ team number. |
Properties #
Name | Summary |
---|---|
A customer-defined payload of extra game information that will be used to create the game instance. | |
A string id that indicates which game server zone that game will be created within. | |
Calculated as true if NewGameInstance.continueMatchmaking has been called. | |
The key for the matchmaking queue that the game will be added to only if markedToContinueMatchmaking is true. Not set if NewGameInstance.continueMatchmaking has not yet been called. | |
The list of players in the NewGameInstance. List is copied when retrieved. | |
A customer-defined payload of extra game information that will be used to create the game instance. |