game-common / pragma.gameinstance / GameInstancePlugin / buildExtAddedToGame /
buildExtAddedToGame #
open suspend fun buildExtAddedToGame(gameInstanceSnapshot: GameInstance.GameInstance, player: GameInstance.GamePlayer): ExtAddedToGame
DEPRECATED in version 0.4.0, removal by 0.6.0. Override handleBackendAddPlayersRequest and use the GameInstance.GamePlayer.dataStore instead.
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. |