game-common / pragma.gameinstance / GameInstancePlugin / handleBackendCreateByMatchmakingRequest /

handleBackendCreateByMatchmakingRequest #

open suspend fun handleBackendCreateByMatchmakingRequest(gameInstanceSnapshot: GameInstance.GameInstance)

Called when a game instance is being created out of matchmaking. The matched players will already be added to the game instance.

The added players will have their game client’s GameInstanceApi::OnAddedToGameInstance event triggered once this plugin completes.

To prevent the game instance from being created, throw an application error.

Default implementation: allocates a game server to host the game instance.

Parameters #

gameInstanceSnapshot

The game instance to be created.