Exemplo n.º 1
0
 public Server()
 {
     serverCommand = new ServerCommand();
     serverCommand.EventHandlerListForServer += new ServerSocket.TcpClientActionEventHandler(AddNewClientCommand);
     clients = new Dictionary<int, ClientCommand>();
     listOfPlayersAndTheirNickname = new Dictionary<int, string>();
 }
Exemplo n.º 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));
 }