Example #1
0
        public void InitController()
        {
            DefaultController controller = new DefaultController();

            controllerDict.Add(RequestCode.User, new UserController());
            controllerDict.Add(RequestCode.Room, new RoomController());
        }
Example #2
0
        void InitController()
        {
            DefaultController defaultController = new DefaultController();

            controllerDict.Add(defaultController.RequestCode, defaultController);
            controllerDict.Add(RequestCode.User, new UserController());
        }
Example #3
0
        void InitController()
        {
            DefaultController defaultController = new DefaultController();

            requestDict.Add(defaultController.RequestCode, defaultController);
            requestDict.Add(RequestCode.User, new UserController());
            requestDict.Add(RequestCode.Room, new RoomController());
            requestDict.Add(RequestCode.Game, new GameController());
        }
Example #4
0
        private void InitController()
        {
            DefaultController defaultController = new DefaultController();

            controllerDic.Add(defaultController.RequestCode, defaultController);
            UserController userController = new UserController();

            controllerDic.Add(userController.RequestCode, userController);
        }
Example #5
0
        /// <summary>
        /// 初始化所有Controller
        /// </summary>
        private void InitControllers()
        {
            //TODO 根据RequestCode初始化各种Controller
            DefaultController defaultController = new DefaultController();

            controllerDict.Add(defaultController.RequestCode, defaultController); //将默认Controller添加至管理字典中
            controllerDict.Add(RequestCode.User, new UserController());           //添加新实例化的UserController
            controllerDict.Add(RequestCode.Room, new RoomController());           //添加新实例化的RoomController
            controllerDict.Add(RequestCode.Game, new GameController());           //添加新实例化的GameController
        }
        private void InitController()
        {
            DefaultController defaultController = new DefaultController();

            controllerDic.Add(defaultController.RequestCode, defaultController);
            UserController userController = new UserController();

            controllerDic.Add(userController.RequestCode, userController);
            RoomController roomController = new RoomController();

            controllerDic.Add(roomController.RequestCode, roomController);
            GameController gameController = new GameController();

            controllerDic.Add(gameController.RequestCode, gameController);
        }
Example #7
0
        void Init()
        {
            DefaultController defaultController = new DefaultController();

            controllerDict.Add(defaultController.RequestCode, defaultController);
        }