setPlayerName

fun MutableState<GameSession>.setPlayerName(name: String?)

Sets the player name in the game session.

Parameters

name

The new player name, or null to unset.