gameInfo method

GameInfo gameInfo(
  1. PlayerID? id
)

Implementation

GameInfo gameInfo(PlayerID? id) => GameInfo(
      status: _started ? GameStatus.Started : GameStatus.Lobby,
      gameId: _gameId,
      players: _players.map((p) => p.name).toIList(),
      player: _clientNames[id] ?? '',
      creator: isClientAdmin(id),
      gameType: gameType,
    );