game-common / pragma.gameinstance / GameInstanceApi / getForPlayer /

getForPlayer #

suspend fun getForPlayer(playerId: <ERROR CLASS>): PragmaResult<GameInstanceCommon.GameInstanceSummary?, PragmaFailure>

Request to get the game instance that a player is in.

Return #

Information about the game instance the player is in, or null if they aren’t in one.

Parameters #

playerId

The id of the player to get the game instance for.