public override void Init()
        {
            UP  = GetCom <UserPort>();
            QRC = GetCom <QuestionnaireResultContainer>();

            UP.OnMessage("SubmitQuestionnaireResult", OnSubmitQuestionnaireResult);
        }
Exemple #2
0
        public override void Init()
        {
            SC = GetCom <SessionContainer>();
            var lgMgr = GetCom <LoginManager>();

            lgMgr.OnUserDisconnecting += OnUserDisconnected;
            UP = GetCom <UserPort>();

            RedirectRoomMessage("AddBattleUnitAt");

            RedirectRoomMessage("ConstructBuilding");
            RedirectRoomMessage("ConstructCrystalMachine");
            RedirectRoomMessage("ConstructAccessory");
            RedirectRoomMessage("ReconstructBuilding");
            RedirectRoomMessage("CancelBuilding");
            RedirectRoomMessage("DropSoldierFromCarrier");
            RedirectRoomMessage("AddBattleUnit4TestAnyway");
            RedirectRoomMessage("AddBuildingUnit4TestAnyway");
            RedirectRoomMessage("AddSoldierCarrierUnit4TestAnyway");
            RedirectRoomMessage("DestroyBuilding");

            UP.OnMessage("Surrender", OnSurrender);
            UP.OnRequest("GetReplayList", OnGetReplayList);
            UP.OnRequest("GetMyReplayList", OnGetMyReplayList);
            UP.OnRequest("GetReplay", OnGetReplay);

            Room4Server.LoadAllPVPReplays();

            BattleLogger = GetCom <ServerBusinessLogger <BattleInfo> >();
        }
Exemple #3
0
        public override void Init()
        {
            UP  = GetCom <UserPort>();
            QRC = GetCom <QuestionnaireResultContainer>();

            //LoadAllQuestionnaire();

            UP.OnRequest("GetQuestionnaire", OnGetQuestionnaire);
        }
Exemple #4
0
        public override void Init()
        {
            UP = GetCom <UserPort>();

            UP.OnMessage("ModifyUsrName", OnModifyUsrName);
            UP.OnMessage("ModifyUsrIntegration", OnModifyUsrIntegration);
            UP.OnMessage("ModifyUsrIntegrationCost", OnModifyUsrIntegrationCost);
            UP.OnMessage("ModifyUsrVariants", OnModifyUsrVariants);
            UP.OnMessage("ModifyUsrUUlocks", OnModifyUsrUUlocks);
            UP.OnMessage("ModifyUsrAvatars", OnModifyUsrAvatars);
            UP.OnMessage("ModifyUsrCurAvatar", OnModifyUsrCurAvatar);
            UP.OnMessage("ModifyUsrUnits", OnModifyUsrUnits);
        }
Exemple #5
0
        public override void Init()
        {
            BtrMgr = GetCom <BattleRoomManager>();
            UP     = GetCom <UserPort>();
            SS     = GetCom <SessionContainer>();
            CM     = GetCom <CoroutineManager>();

            UP.OnMessage("MatchIn", OnIn);
            UP.OnRequest("CancelMatchIn", OnCancel);
            UP.OnMessage("PVEMatchIn", OnPVEIn);
            UP.OnRequest("CancelPVEMatchIn", OnPVECancel);

            GetCom <LoginManager>().OnUserDisconnecting += OnUserDisconnecting;
            ConsoleInput.OnChangePVEAI += ChangePVEAI;
        }
Exemple #6
0
        // 初始化
        public override void Init()
        {
            SC = GetCom <SessionContainer>();
            UP = GetCom <UserPort>();
            UC = GetCom <UserContainer>();
            var nc = GetCom <NetCore>();

            nc.OnDisconnected += OnDisconnected;

            UP.OnRequest("Login", OnUserLoginMsg);

            // 登录日志
            SrvLogger = GetCom <ServerBusinessLogger <LoginInfo> >();

            //  问卷
            QRC = GetCom <QuestionnaireResultContainer>();
        }
Exemple #7
0
        // 初始化
        public override void Init()
        {
            UP = GetCom<UserPort>();

            UP.OnRequest("GetUnitCfgs", OnGetUnitCfgs);
        }