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

getIdForPlayer #

suspend fun getIdForPlayer(playerId: <ERROR CLASS>): PragmaResult<<ERROR CLASS>?, PragmaFailure>

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

Return #

The game instance id of 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.