public bool AddClient(TcpClient client) { var newClient = new ClientHandle(client, defaultController.GetNewClientId(), defaultInterpreter); defaultController.AddClient(newClient); newClient.BeginRead(); return(true); }
public MainController InitMainController() { MainController controller = new MainController(); controller.AddClient(new ClientHandleMock(null, PLAYER_ID, null)); controller.RegisterGame(GAME_NAME, 4, 4, PLAYER_ID); return(controller); }