示例#1
0
        public bool AddClient(TcpClient client)
        {
            var newClient = new ClientHandle(client, defaultController.GetNewClientId(), defaultInterpreter);

            defaultController.AddClient(newClient);
            newClient.BeginRead();
            return(true);
        }
示例#2
0
        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);
        }