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

handleBackendRemovePlayersRequest #

open suspend fun handleBackendRemovePlayersRequest(gameInstanceSnapshot: GameInstance.GameInstance, requestExt: ExtBackendRemovePlayersRequest, playersToRemove: Map<<ERROR CLASS>, ExtBackendRemovePlayer>)

Called when receiving a backend request to remove players from a game instance.

Remove the players from the game instance using the GameInstance.GameInstance.removePlayer method.

Default implementation: removes the players from the game instance.

Parameters #

gameInstanceSnapshot

The game instance to remove players from.

requestExt

The data sent along with the request.

playersToRemove

A map of player ids to ext data for each player to remove from the game instance.