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

buildExtGameServerPlayer #

open suspend fun buildExtGameServerPlayer(gameInstanceSnapshot: GameInstance.GameInstance, player: GameInstance.GamePlayer): ExtGameServerPlayer

Called to prepare any custom data about a player in a game instance to send to the game server when a player is joining the game instance.

Return #

The payload to send to the game server.

Parameters #

gameInstanceSnapshot

The game instance the player is in.

player

The player to prepare data for.