public override void Init() { UP = GetCom <UserPort>(); QRC = GetCom <QuestionnaireResultContainer>(); UP.OnMessage("SubmitQuestionnaireResult", OnSubmitQuestionnaireResult); }
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> >(); }
public override void Init() { UP = GetCom <UserPort>(); QRC = GetCom <QuestionnaireResultContainer>(); //LoadAllQuestionnaire(); UP.OnRequest("GetQuestionnaire", OnGetQuestionnaire); }
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); }
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; }
// 初始化 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>(); }
// 初始化 public override void Init() { UP = GetCom<UserPort>(); UP.OnRequest("GetUnitCfgs", OnGetUnitCfgs); }