public static void SendStartGameDataMessage() { IsGameStart = true; var players = GetPlayersNamesList(); _gameData = new GameData(DateTime.Now, TableScore.Create(players, StartScore), players[0]) { ClientName = _serverName, CurrentNumPlayers = _clients.Count, CurrentPlayers = GetPlayersNamesList(), LobbyName = _lobbyName, Status = ReceiverStatus.Ok }; NumGamePlayers = _gameData.CurrentNumPlayers; SendGameDataMessage(); }
public GameScreen(int x, int y, int width, int height, char borderChar) : base(x, y, width, height, borderChar) { tableScore = new TableScore(width - 30, y + 2, 25, 30); tableScore.Title(); }