コード例 #1
0
ファイル: Server.cs プロジェクト: sander3991/SecretHitler
 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);
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: sander3991/SecretHitler
 public SocketListener(ServerMessageHandler server, TcpClient client, Player player)
 {
     this.client = client;
     this.server = server;
     Player = player;
     DoWork += OnReceived;
     RunWorkerAsync();
 }