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

buildExtGameServerPlayer #

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

Called to prepare custom data about a player in a game instance to send to the game server.

Usage of any functions on the GameInstance.GameInstance will not work in this plugin method.

Return #

The payload to send to the game server.

Parameters #

gameInstanceSnapshot

The game instance that the player is in.

player

The player to prepare data for.