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

buildExtAddedToGame #

open suspend fun buildExtAddedToGame(gameInstanceSnapshot: GameInstance.GameInstance, player: GameInstance.GamePlayer): ExtAddedToGame

Called to prepare any custom data to send to the game client when a player joins a game instance.

Return #

The payload to send to the game client.

Parameters #

gameInstanceSnapshot

The game instance the player is in.

player

The player to prepare data for.