Пример #1
0
 public Server()
 {
     serverCommand = new ServerCommand();
     serverCommand.EventHandlerListForServer += new ServerSocket.TcpClientActionEventHandler(AddNewClientCommand);
     clients = new Dictionary<int, ClientCommand>();
     listOfPlayersAndTheirNickname = new Dictionary<int, string>();
 }
Пример #2
0
 public Server()
 {
     serverCommand = new ServerCommand();
     serverCommand.EventHandlerListForServer += new ServerSocket.TcpClientActionEventHandler(AddNewClientCommand);
     clients = new Dictionary <int, ClientCommand>();
     listOfPlayersAndTheirNickname = new Dictionary <int, string>();
     workerThread = new Thread(new ThreadStart(WorkerThread));
 }