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

onGameServerAllocationFailed #

open suspend fun onGameServerAllocationFailed(gameInstanceSnapshot: GameInstance.GameInstance)

Called when game server allocation fails for a game instance.

A game server allocation fails when either the GameServerProviderPlugin.startAllocationForGameInstance throws an exception, or when a game server doesn’t link to the game instance within the GameInstanceServiceConfig.gameServerAllocationTimeoutMillis timeout.

Default implementation: ends the game instance.

Parameters #

gameInstanceSnapshot

The game instance that attempted to allocate a game server.