protected void UnRegist() { MsgHander.UnRegist(0xD501, S2C_GetGuildList); MsgHander.UnRegist(0xD379, S2C_OnGotStorageData); MsgHander.UnRegist(0xD506, S2C_OnGotChangeStorageData); MsgHander.UnRegist(0xD392, S2C_GuildLog); MsgHander.UnRegist(0xD380, S2C_GuildInfo); MsgHander.UnRegist(0xD503, S2C_GetNewMemberList); MsgHander.UnRegist(0xD381, S2C_GetGuildMember); MsgHander.UnRegist(0xD382, S2C_GuildNameUpdate); MsgHander.UnRegist(0xD524, S2C_OnGetItemApplyList); MsgHander.UnRegist(0xD525, S2C_GetStorageLogList); MsgHander.UnRegist(0xD394, S2C_UpdateSalaryState); MsgHander.UnRegist(0xD517, S2C_UpdateAutoReplyState); MsgHander.UnRegist(0xD527, S2C_GuildName); MsgHander.UnRegist(0xD50A, S2C_DonateLimitData); MsgHander.UnRegist(0xD50C, S2C_DonateLimitInfo); MsgHander.UnRegist(0xD138, S2C_GuildNotice); MsgHander.UnRegist(0xC124, S2C_ReqGuildResult); MsgHander.UnRegist(0xD50E, S2C_GotGuildLivelyData); MsgHander.UnRegist(0xD51A, S2C_OnGotLivelyRewardResult); guildDic.Clear(); guildMemberList.Clear(); haveViceChairman = false; restDonateTimes = 0; maxDonateTime = 3; }
/// <summary> /// 初始化(注册监听) /// </summary> protected void Init() { MsgHander.Regist(0xC131, S2C_GetSevenChallengeAll); MsgHander.Regist(0xC132, S2C_GetSevenChallengeSigle); isOpenSevenChallenge = false; isShowRedPoint = false; }
/// <summary> /// 注销 /// </summary> protected virtual void UnRegist(MainPlayerMng _main) { //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate -= ChangeAutoUseSkill; MsgHander.UnRegist(0xD911, S2C_GetAllOpenServerRewardInfo); MsgHander.UnRegist(0xD913, S2C_GetOpenServerRewardResult); MsgHander.UnRegist(0xD961, S2C_GetLotteryInfo); MsgHander.UnRegist(0xD963, S2C_GetLotteryRecord); MsgHander.UnRegist(0xD965, S2C_GetLotteryResult); MsgHander.UnRegist(0xC128, S2C_GetTarotInfo); MsgHander.UnRegist(0xC129, S2C_GetTarotReward); MsgHander.UnRegist(0xD990, S2C_GetDailyFirstRechargeInfo); MsgHander.UnRegist(0xD991, S2C_CloseDailyFirstRecharge); GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate -= RefreshOpen; MainPlayerMng.OnCreateNew -= FirstIn; CanOpen = false; serverData = null; isAccord = false; lotteryData = null; lottryResult.Clear(); lottryRecord.Clear(); isRotateOver = false; curOpenServerType = OpenServerType.none; isRotating = false; taroatRewards.Clear(); wdfTaroatData = null; rebackPercent = 0; reminTime = 0; isOpenFirstRecharge = false; }
void Init() { MsgHander.Regist(0xD766, S2C_AchievementReachNum); MsgHander.Regist(0xD767, S2C_AchievementRewardState); MsgHander.Regist(0xD776, S2C_AchievementRedPoint); MsgHander.Regist(0xD783, S2C_AchievementToggleRed); }
protected void UnRegist() { MsgHander.UnRegist(0xB107, S2C_OnChangePos); MsgHander.UnRegist(0xB104, S2C_OnLoginInGame); // MsgHander.UnRegist(0xD204, S2C_CollectResult); //MsgHander.UnRegist(0xD329, S2C_VIPResult); MsgHander.UnRegist(0xD442, S2C_ReinNum); MsgHander.UnRegist(0xB105, S2C_CurServerTime); //MsgHander.UnRegist(0xD804,S2C_GuideSeqencingList); //MsgHander.UnRegist(0xD779,S2C_ServerStartGuide); MsgHander.UnRegist(0xD786, S2C_ServerStartTime); MsgHander.UnRegist(0xD70A, S2C_StartCameraFocus); MsgHander.UnRegist(0xD70B, S2C_EndCameraFocus); MsgHander.UnRegist(0xC105, S2C_UpdateFuncReward); MsgHander.UnRegist(0xD01D, S2C_OnBaseValueChange); // GameCenter.taskMng.updateSingleTask -= TaskOpenFunction; GameCenter.taskMng.OnTaskGuideUpdateEvent -= TaskProcessOpenFunction; GameCenter.taskMng.OnTaskFinishedGuideUpdateEvent -= TaskFinishedOpenFunction; //vipData = null; questionList.Clear(); IsUpdateQuestionList = false; functionList.Clear(); functionSequence = 0; pkModelTipShow = false; curGetRewardStep = 1; }
/// <summary> /// 初始化 /// </summary> void Init() { MsgHander.Regist(0xD378, S2C_GetTreasureData); MsgHander.Regist(0xD390, S2C_GetHouseData); MsgHander.Regist(0xD391, S2C_GetChangeHouseData); MsgHander.Regist(0xD511, S2C_GetTreasureRecord); }
/// <summary> /// 注销 /// </summary> protected virtual void UnRegist(MainPlayerMng _main) { MsgHander.UnRegist(0xDA01, S2C_OnGotOrderID); MsgHander.UnRegist(0xD819, S2C_OnGotTestChargeData); TestRechargeRewardDiamo = 0; TestRechargeRewardVipExp = 0; }
protected void Init() { MsgHander.Regist(0xD339, S2C_AllMailList); MsgHander.Regist(0xD335, S2C_AllMailDelete); MsgHander.Regist(0xD337, S2C_AllMailContent); MsgHander.Regist(0xD340, C2S_SendSuccessMail); }
/// <summary> /// 注销 /// </summary> protected void UnRegist(MainPlayerMng _main) { MsgHander.UnRegist(0xD412, S2C_GetFashionList); MsgHander.UnRegist(0xD414, S2C_PutFashion); MsgHander.UnRegist(0xD788, S2C_UpdateFashionLev); ResetData(); }
/// <summary> /// 注销 /// </summary> protected void UnRegist() { MsgHander.UnRegist(0xD325, S2C_NewRecieveChatContent); MsgHander.UnRegist(0xD689, S2C_RecieveChatTemplates); MsgHander.UnRegist(0xD802, S2C_AddMerryGoRound); ResetData(); }
private void OnReceived(object sender, EventArgs e) { LastConnectedPing = 0; PtMsg pt = e as PtMsg; MsgHander.PutCmd(pt.bytes); }
/// <summary> /// 注销,清理 /// </summary> protected void UnRegist() { MsgHander.UnRegist(0xD001, S2C_ServerMSG); serverMsgList.Clear(); clientMsgList.Clear(); clientMsgDic.Clear(); }
void UnRegist() { MsgHander.UnRegist(0xC133, S2C_GetTwoChargeRewared); isCloseTwoCharge = false; stage = 0; isOpenTwoCharge = true; }
/// <summary> /// 注销 /// </summary> void UnRegister() { MsgHander.UnRegist(0xD329, S2C_VIPResult); MsgHander.UnRegist(0xD80B, S2C_RechargeFlag); vipData = null; rechargeFlagDic.Clear(); }
protected void Init() { //MsgHander.Regist(0xD435, S2C_AllEndList); //MsgHander.Regist(0xD437, S2C_AllEndReWard); //MsgHander.Regist(0xD449, S2C_EndLessItemUpdate); //MsgHander.Regist(0xD451, S2C_SweepRewardAll); MsgHander.Regist(0xD453, S2C_CopyItemList); MsgHander.Regist(0xD455, S2C_BuyCopyInNum); MsgHander.Regist(0xD457, S2C_CopyInSceneStar); MsgHander.Regist(0xD460, S2C_CopyItemTeams); MsgHander.Regist(0xD465, S2C_ReqCopyInTeamClose); MsgHander.Regist(0xD463, S2C_ReqCopyInChange); MsgHander.Regist(0xD466, S2C_ReqCopyInPerpare); MsgHander.Regist(0xD467, S2C_ReqSettlementRewardData); MsgHander.Regist(0xD469, S2C_ReqSettlementFlopData); MsgHander.Regist(0xD470, S2C_ReqOpenCopyForce); //MsgHander.Regist(0xD485, S2C_ArenaServerDataInfo); MsgHander.Regist(0xD491, S2C_ReqArenaRewardData); //MsgHander.Regist(0xD489, S2C_ArenaServerReward); MsgHander.Regist(0xD47a, S2C_GameStop); //MsgHander.Regist(0xD715, S2C_ActivityDataInfo); MsgHander.Regist(0xD716, S2C_MagicTowers); MsgHander.Regist(0xD746, S2C_InvitationPlayer); MsgHander.Regist(0xD749, S2C_CopyInFriend); MsgHander.Regist(0xD753, S2C_ReqOpenCoppyTime); //MsgHander.Regist(0xD756, S2C_FairyDomainToprotect); MsgHander.Regist(0xD771, S2C_TeamAddInvitationPlayer); MsgHander.Regist(0xC147, S2C_GetTowerChallengeNum); }
protected void UnRegist() { MsgHander.UnRegist(0xE111, S2C_GetMountListInfo); MsgHander.UnRegist(0xE113, S2C_GetMountSkinListInfo); MsgHander.UnRegist(0xD439, S2C_GetMountPromoteLev); MsgHander.UnRegist(0xD440, S2C_GetMountAfterUpdate); MsgHander.UnRegist(0xD757, S2C_GetSkinLevUpdate); MsgHander.UnRegist(0xD575, S2C_OnGotEquipData); MsgHander.UnRegist(0xD576, S2C_OnUpdateEquipData); curMountInfo = null; curSkinLev = 0; skinExp = 0; curLev = -1; mountSkinList.Clear(); mountInfoList.Clear(); AllMountDic.Clear(); AllSkinDic.Clear(); mountList.Clear(); rideType = 0; skinId = 0; state = 0; skinState = false; mountEquipDic.Clear(); curChooseSkin = null; curSelectEquipmentInfo = null; }
void UnRegist() { MsgHander.UnRegist(0xF001, S2C_GetSevenDayRewardInfo); sevendDic.Clear(); day = 1; //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate -= RefreshSevenOpen; }
/// <summary> /// 注销 /// </summary> protected virtual void UnRegist() { MsgHander.UnRegist(0xD100, S2C_OnGetSkillList); MsgHander.UnRegist(0xD401, S2C_OnGetUseSkillList); ResetData(); GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate -= RefreshRed; }
void UnRegist() { MsgHander.UnRegist(0xD741, S2C_GotOtherBonfireInfo); MsgHander.UnRegist(0xD736, S2C_GotBudokaiResult); MsgHander.UnRegist(0xD611, S2C_GotHolyInfo); MsgHander.UnRegist(0xD614, S2C_GotDartPos); MsgHander.UnRegist(0xD615, S2C_StartDartResult); MsgHander.UnRegist(0xD616, S2C_EndDartResult); MsgHander.UnRegist(0xD723, S2C_GotUpDownState); MsgHander.UnRegist(0xD717, S2C_GotBudokaiOpponentInfo); MsgHander.UnRegist(0xD720, S2C_GotBudokaiLogInfo); // MsgHander.UnRegist(0xD601, S2C_GotBudokaiRankInfo); MsgHander.UnRegist(0xD721, S2C_GotApplyInfo); MsgHander.UnRegist(0xD726, S2C_GotProtectActivityInfo); MsgHander.UnRegist(0xD727, S2C_GotProtectActivityRank); MsgHander.UnRegist(0xD730, S2C_GotGuildSiegeInfo); MsgHander.UnRegist(0xD731, S2C_GotGuildSiegeApplyList); MsgHander.UnRegist(0xD733, S2C_GotGuildSiegeItemList); MsgHander.UnRegist(0xD728, S2C_ActivityBalance); MsgHander.UnRegist(0xD778, S2C_ActivityStormCity); MsgHander.UnRegist(0xD794, S2C_GetJewelryList); MsgHander.UnRegist(0xD796, S2C_GetJewerlyFinish); MsgHander.UnRegist(0xD715, S2C_ActivityDataInfo); MsgHander.UnRegist(0xD756, S2C_FairyDomainToprotect); MsgHander.UnRegist(0xC136, S2C_GetHungUpCoppyResult); MsgHander.UnRegist(0xC135, S2C_GetHungUpWndResult); coldGetTime = 0; rewardId = 0; activityDic.Clear(); isAutoButMonsterNum = false; HangUpCoppyExpCount = 0; hangUpCoppyRemainMonsterNum = 0; HangUpRemainBuyTimes = 0; }
/// <summary> /// 注册 /// </summary> protected virtual void Init(MainPlayerMng _main) { MsgHander.Regist(0xD514, S2C_OnGetGuildSkillList); C2S_AskGuildSkillList(); // MsgHander.Regist(0xD401, S2C_OnGetUseSkillList); //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate += ChangeAutoUseSkill; }
/// <summary> /// 注销 /// </summary> protected virtual void UnRegist(MainPlayerMng _main) { MsgHander.UnRegist(0xD550, S2C_GetMarketItem); MsgHander.UnRegist(0xD555, S2C_GetMarketItemFeedBack); //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate -= ChangeAutoUseSkill; ResetData(); }
/// <summary> /// 注销(包含清空和还原数据) /// </summary> protected void UnRegist() { MsgHander.UnRegist(0xD492, S2C_GotDGTime); MsgHander.UnRegist(0xD493, S2C_GotDGWaveNum); MsgHander.UnRegist(0xD497, S2C_GotDGLayerNum); MsgHander.UnRegist(0xD496, S2C_GotDGMonsterNum); MsgHander.UnRegist(0xD498, S2C_GotDGPetTime); MsgHander.UnRegist(0xD499, S2C_GotDGReliveTimes); MsgHander.UnRegist(0xD700, S2C_GotDGKillMonster); MsgHander.UnRegist(0xD724, S2C_GotDGScore); MsgHander.UnRegist(0xD734, S2C_GotDGDeadTimes); MsgHander.UnRegist(0xD772, S2C_GotTowerRewardState); MsgHander.UnRegist(0xD495, S2C_GotBridgeBossCallInfo); MsgHander.UnRegist(0xD768, S2C_GotGuildFireExp); MsgHander.UnRegist(0xD769, S2C_GotGuildFireHp); MsgHander.UnRegist(0xD770, S2C_GotGuildFireExpPercent); MsgHander.UnRegist(0xD728, S2C_GotGuildProtectResult); MsgHander.UnRegist(0xD780, S2C_GotBridgeNpcID); MsgHander.UnRegist(0xD781, S2C_GotGuildSiegeState); MsgHander.UnRegist(0xD782, S2C_GotGuildSiegeStone); MsgHander.UnRegist(0xD791, S2C_GetCouplePoemId); MsgHander.UnRegist(0xD792, S2C_GetCouplePoem); MsgHander.UnRegist(0xC144, S2C_GetAllSatr); MsgHander.UnRegist(0xC145, S2C_GetDropRewardInteger); ClearData(); }
protected void Init() { MsgHander.Regist(0xD540, S2C_GetSwornWndInfo); MsgHander.Regist(0xD543, S2C_GetRewardInfo); MsgHander.Regist(0xD547, S2C_BrokeUp); MsgHander.Regist(0xD690, S2C_GetSwornBrother); }
/// <summary> /// 注册 /// </summary> protected void Init() { //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate += ChangeAutoUseSkill; MsgHander.Regist(0xD901, S2C_GetAllActivitys); MsgHander.Regist(0xD903, S2C_GetActivitysByID); MsgHander.Regist(0xD905, S2C_GetActivitysRewardPt); C2S_AskAllActivitysInfo(); }
/// <summary> /// 注销 /// </summary> protected void UnRegister() { MsgHander.UnRegist(0xD779, S2C_ServerStartGuide); MsgHander.UnRegist(0xD804, S2C_GuideSeqencingList); startGuide = false; newFunctionCopyId = 0; OnGuideOver.Clear(); }
/// <summary> /// 注册 /// </summary> protected void Init(MainPlayerMng _main) { MsgHander.Regist(0xD412, S2C_GetFashionList); MsgHander.Regist(0xD414, S2C_PutFashion); MsgHander.Regist(0xD788, S2C_UpdateFashionLev); //GetAllFashion (); C2S_AskFashionDic(); }
/// <summary> /// 初始化(包含协议注册) /// </summary> protected void Init(MainPlayerMng _father) { foreach (MagicWeaponRef data in ConfigMng.Instance.MagicWeaponRefTabel.Values) { magicInfoDic[data.id] = new MagicWeaponInfo(data); } MsgHander.Regist(0xD309, S2C_GetMagicData); }
/// <summary> /// 注销 /// </summary> void UnRegister() { MsgHander.UnRegist(0xC118, S2C_GetRewardInfo); rewardData = null; OffLineTime = 0; amountTime = 0; IsOpenWnd = false; }
/// <summary> /// 注册 /// </summary> protected virtual void Init(MainPlayerMng _main) { MsgHander.Regist(0xD822, S2C_OnGetDownReward); //MsgHander.Regist(0xD372, S2C_OnGetRedeemItemList); // MsgHander.Regist(0xD401, S2C_OnGetUseSkillList); //GameCenter.mainPlayerMng.MainPlayerInfo.OnBaseUpdate += ChangeAutoUseSkill; }
/// <summary> /// 注销 /// </summary> protected void UnRegister() { MsgHander.UnRegist(0xC131, S2C_GetSevenChallengeAll); MsgHander.UnRegist(0xc132, S2C_GetSevenChallengeSigle); rewardSevenChallenge.Clear(); listInfo.Clear(); listSingleInfo.Clear(); }