Example #1
0
 private Server(Game game, GamePanel panel, Client client)
 {
     this.game = game;
     GameState = new ServerGameState(this);
     for (var i = 1; i < 5; i++)
         GameState.SeatedPlayers[i] = Player.GetPlayerServerSide($"Temp {i}");
     ServerMessageHandler = new ServerMessageHandler(this, GameState);
 }
Example #2
0
 public SocketListener(ServerMessageHandler server, TcpClient client, Player player)
 {
     this.client = client;
     this.server = server;
     Player = player;
     DoWork += OnReceived;
     RunWorkerAsync();
 }