using UnityEngine; using System; using System.Collections; using System.Collections.Generic; //using ILCrossBinding; public class PackageRegedit { #region 主工程原生的封包 static object lockojb1 = new object(); static Dictionary m_PackageTable = new Dictionary(); static Dictionary packageTable { get { lock (lockojb1) { return m_PackageTable; } } } static object lockojb2 = new object(); static Dictionary m_PackToBusinessTable = new Dictionary(); static Dictionary packToBusinessTable { get { lock (lockojb2) { return m_PackToBusinessTable; } } } #endregion public static void Init() { // 登记相应的数据体及对应的数据转逻辑类 Register(typeof(HA328_tagMCHistoryReChargeAwardRecord), typeof(DTCA328_tagMCHistoryReChargeAwardRecord)); Register(typeof(HB311_tagGCTalkCache), typeof(DTCB311_tagGCTalkCache)); Register(typeof(HAC01_tagGCFamilyWarInfo), typeof(DTCAC01_tagGCFamilyWarInfo)); Register(typeof(HA40D_tagGCServerCreatFamilyTimes), typeof(DTCA40D_tagGCServerCreatFamilyTimes)); Register(typeof(HAC07_tagGCHorsePetBossInfo), typeof(DTCAC07_tagGCHorsePetBossInfo)); Register(typeof(HB216_tagMCStartCustomSceneResult), typeof(DTCB216_tagMCStartCustomSceneResult)); Register(typeof(HA905_tagGCNotifyEquipDetailInfo), typeof(DTCA905_tagGCNotifyEquipDetailInfo)); Register(typeof(HA719_tagSCPlayerEquipCacheResult), typeof(DTCA719_tagSCPlayerEquipCacheResult)); Register(typeof(HB108_tagMCYinjiStartTime), typeof(DTCB108_tagMCYinjiStartTime)); Register(typeof(HA309_tagMCSkillElementInfo), typeof(DTCA309_tagMCSkillElementInfo)); Register(typeof(HA325_tagMCNPCAttackCountInfo), typeof(DTCA325_tagMCNPCAttackCountInfo)); Register(typeof(HB215_tagMCFBBuyBuffInfo), typeof(DTCB215_tagMCFBBuyBuffInfo)); Register(typeof(HA718_tagMCCollectAwardItemInfo), typeof(DTCA718_tagMCCollectAwardItemInfo)); Register(typeof(HB214_tagMCCuntomFBPrizeInfo), typeof(DTCB214_tagMCCuntomFBPrizeInfo)); Register(typeof(HA307_tagMCFairyAdventuresInfo), typeof(DTCA307_tagMCFairyAdventuresInfo)); Register(typeof(HA306_tagMCFairyDomainInfo), typeof(DTCA306_tagMCFairyDomainInfo)); Register(typeof(HB107_tagMCRolePointInfo), typeof(DTCB107_tagMCRolePointInfo)); Register(typeof(HA327_tagMCRealmExpInfo), typeof(DTCA327_tagMCRealmExpInfo)); Register(typeof(HA40C_tagGCAllFamilyBossInfo), typeof(DTCA40C_tagGCAllFamilyBossInfo)); Register(typeof(HA3B1_tagMCEquipPartStarInfo), typeof(DTCA3B1_tagMCEquipPartStarInfo)); Register(typeof(HA816_tagMCMysticalShopInfo), typeof(DTCA816_tagMCMysticalShopInfo)); Register(typeof(HAC11_tagGCFeastRedPacketInfo), typeof(DTCAC11_tagGCFeastRedPacketInfo)); Register(typeof(HAB25_tagMCFeastRedPackInfo), typeof(DTCAB25_tagMCFeastRedPackInfo)); Register(typeof(HB213_tagMCSkyTowerInfo), typeof(DTCB213_tagMCSkyTowerInfo)); Register(typeof(HB413_tagMCPlayerSkills), typeof(DTCB413_tagMCPlayerSkills)); Register(typeof(HB212_tagMCZhuXianBossCnt), typeof(DTCB212_tagMCZhuXianBossCnt)); Register(typeof(H0208_tagTalkCountry), typeof(DTC0208_tagTalkCountry)); Register(typeof(HB102_tagMCClothesCoatSkinState), typeof(DTCB102_tagMCClothesCoatSkinState)); Register(typeof(HA112_tagMCDBPlayer), typeof(DTCA112_tagMCDBPlayer)); Register(typeof(HC106_tagMCEnterCrossServerError), typeof(DTCC106_tagMCEnterCrossServerError)); Register(typeof(HC105_tagMCStartEnterCrossServer), typeof(DTCC105_tagMCStartEnterCrossServer)); Register(typeof(HC104_tagMCPrepareEnterCrossServer), typeof(DTCC104_tagMCPrepareEnterCrossServer)); Register(typeof(HC103_tagMCCrossRealmPKPlayerHisSeasonInfo), typeof(DTCC103_tagMCCrossRealmPKPlayerHisSeasonInfo)); Register(typeof(HA361_tagMCGatherTheSoulHoleInfo), typeof(DTCA361_tagMCGatherTheSoulHoleInfo)); Register(typeof(HAA1D_tagMCActTotalRechargeInfo), typeof(DTCAA1D_tagMCActTotalRechargeInfo)); Register(typeof(HAA1C_tagMCTotalRechargePlayerInfo), typeof(DTCAA1C_tagMCTotalRechargePlayerInfo)); Register(typeof(HA717_tagMCChatBubbleBoxState), typeof(DTCA717_tagMCChatBubbleBoxState)); Register(typeof(HB913_tagGCEnterTeamFBFailReason), typeof(DTCB913_tagGCEnterTeamFBFailReason)); Register(typeof(H0311_tagDeleteSkill), typeof(DTC0311_tagDeleteSkill)); Register(typeof(HB106_tagMCNotifyPlayerMove), typeof(DTCB106_tagMCNotifyPlayerMove)); Register(typeof(H0132_tagCreateRoleSucess), typeof(DTC0132_tagCreateRoleSucess)); Register(typeof(HA326_tagMCNPCIDCollectionCntInfo), typeof(DTCA326_tagMCNPCIDCollectionCntInfo)); Register(typeof(HA904_tagGCDogzNPCRefreshTime), typeof(DTCA904_tagGCDogzNPCRefreshTime)); Register(typeof(HA714_tagMCNPCCntList), typeof(DTCA714_tagMCNPCCntList)); Register(typeof(HAA16_tagMCSuperGiftInfo), typeof(DTCAA16_tagMCSuperGiftInfo)); Register(typeof(HAC10_tagGCAllFamilyBossHurtInfoList), typeof(DTCAC10_tagGCAllFamilyBossHurtInfoList)); Register(typeof(HA715_tagMCFamilyBossHurtList), typeof(DTCA715_tagMCFamilyBossHurtList)); Register(typeof(HAB04_tagMCBossRebornInfo), typeof(DTCAB04_tagMCBossRebornInfo)); Register(typeof(HA40B_tagGCPlayerJoinFamilyWarInfo), typeof(DTCA40B_tagGCPlayerJoinFamilyWarInfo)); Register(typeof(HA319_tagMCPackDownloadRecord), typeof(DTCA319_tagMCPackDownloadRecord)); Register(typeof(HAC0A_tagGCMultiRealmPointInfo), typeof(DTCAC0A_tagGCMultiRealmPointInfo)); Register(typeof(HAC08_tagGCBossRebornPoint), typeof(DTCAC08_tagGCBossRebornPoint)); Register(typeof(HAB03_tagMCBossRebornPlayerInfo), typeof(DTCAB03_tagMCBossRebornPlayerInfo)); Register(typeof(HAA11_tagMCSpringSaleInfo), typeof(DTCAA11_tagMCSpringSaleInfo)); Register(typeof(HAA10_tagMCCostRebatePlayerInfo), typeof(DTCAA10_tagMCCostRebatePlayerInfo)); Register(typeof(HAA09_tagMCCostRebateInfo), typeof(DTCAA09_tagMCCostRebateInfo)); Register(typeof(HAC06_tagGCMultiExpRateInfo), typeof(DTCAC06_tagGCMultiExpRateInfo)); Register(typeof(HA001_tagBroadCastInfo), typeof(DTCA001_tagBroadCastInfo)); Register(typeof(HA40A_tagGCFakeFamilyInfo), typeof(DTCA40A_tagGCFakeFamilyInfo)); Register(typeof(HA110_tagMCCoinToGoldCountInfo), typeof(DTCA110_tagMCCoinToGoldCountInfo)); Register(typeof(HAA02_tagMCFirstGoldInfo), typeof(DTCAA02_tagMCFirstGoldInfo)); Register(typeof(HA353_tagMCMWPrivilegeDataInfo), typeof(DTCA353_tagMCMWPrivilegeDataInfo)); Register(typeof(HA352_tagMCMagicWeaponLVInfo), typeof(DTCA352_tagMCMagicWeaponLVInfo)); Register(typeof(HAB24_tagMCOpenServerRedPacketInfo), typeof(DTCAB24_tagMCOpenServerRedPacketInfo)); Register(typeof(HAC05_tagGCRedPacketDel), typeof(DTCAC05_tagGCRedPacketDel)); Register(typeof(HB310_tagGCVoiceChat), typeof(DTCB310_tagGCVoiceChat)); Register(typeof(HA901_tagGCBossShuntLineStateInfo), typeof(DTCA901_tagGCBossShuntLineStateInfo)); Register(typeof(HB201_tagMCFMTDoubleState), typeof(DTCB201_tagMCFMTDoubleState)); Register(typeof(HA409_tagGCFamilySWRHInfo), typeof(DTCA409_tagGCFamilySWRHInfo)); Register(typeof(HA606_tagMCVIPKillNPCLVInfo), typeof(DTCA606_tagMCVIPKillNPCLVInfo)); Register(typeof(HA501_tagMCNotifyRequestJoinFamilyInfo), typeof(DTCA501_tagMCNotifyRequestJoinFamilyInfo)); Register(typeof(HB40A_tagMCPYPlayerMove), typeof(DTCB40A_tagMCPYPlayerMove)); Register(typeof(HB105_tagMCPlayerWallow), typeof(DTCB105_tagMCPlayerWallow)); Register(typeof(HA30B_tagMCPlayerLVAwardGetRecord), typeof(DTCA30B_tagMCPlayerLVAwardGetRecord)); Register(typeof(HAB17_tagMCOpenServerCampaignAwardList), typeof(DTCAB17_tagMCOpenServerCampaignAwardList)); Register(typeof(HA124_tagMCPlayerInfo), typeof(DTCA124_tagMCPlayerInfo)); Register(typeof(HA710_tagMCGuideState), typeof(DTCA710_tagMCGuideState)); Register(typeof(HB412_tagMCDelMaliciousAtkPlayer), typeof(DTCB412_tagMCDelMaliciousAtkPlayer)); Register(typeof(HB411_tagMCAddMaliciousAtkPlayer), typeof(DTCB411_tagMCAddMaliciousAtkPlayer)); Register(typeof(HA127_tagMCStartChangeMap), typeof(DTCA127_tagMCStartChangeMap)); Register(typeof(HA126_tagMCPrepareChangeMap), typeof(DTCA126_tagMCPrepareChangeMap)); Register(typeof(HA125_tagMCChangeMapFail), typeof(DTCA125_tagMCChangeMapFail)); Register(typeof(HA506_tagMCFamilyDayAward), typeof(DTCA506_tagMCFamilyDayAward)); Register(typeof(H0F07_tagFamilyRenameResult), typeof(DTC0F07_tagFamilyRenameResult)); Register(typeof(HA713_tagMCDynamicBarrierState), typeof(DTCA713_tagMCDynamicBarrierState)); Register(typeof(HA535_tagMCChampionFamilyDailyReward), typeof(DTCA535_tagMCChampionFamilyDailyReward)); Register(typeof(HB210_tagMCFamilyWarBillboard), typeof(DTCB210_tagMCFamilyWarBillboard)); Register(typeof(H0F04_tagFamilyAskIfJoin), typeof(DTC0F04_tagFamilyAskIfJoin)); Register(typeof(HA007_tagGCFBLinePlayerCnt), typeof(DTCA007_tagGCFBLinePlayerCnt)); Register(typeof(H0436_tagPlayerFamilyNameRefresh), typeof(DTC0436_tagPlayerFamilyNameRefresh)); Register(typeof(HA408_tagGCPyAllFamilyView), typeof(DTCA408_tagGCPyAllFamilyView)); Register(typeof(HB408_tagMCPassiveSetAnswer), typeof(DTCB408_tagMCPassiveSetAnswer)); Register(typeof(HB407_tagMCPassivePage), typeof(DTCB407_tagMCPassivePage)); Register(typeof(HB406_tagMCPassiveSet), typeof(DTCB406_tagMCPassiveSet)); Register(typeof(HB209_tagMCFBCntRegainRemainTime), typeof(DTCB209_tagMCFBCntRegainRemainTime)); Register(typeof(HA813_tagMCVirtualItemDrop), typeof(DTCA813_tagMCVirtualItemDrop)); Register(typeof(HA302_tagMCFuncOpenStateList), typeof(DTCA302_tagMCFuncOpenStateList)); Register(typeof(H0105_tagCreateRoleFail), typeof(DTC0105_tagCreateRoleFail)); Register(typeof(H0330_tagCurExpRate), typeof(DTC0330_tagCurExpRate)); Register(typeof(HA005_tagOpenServerDay), typeof(DTCA005_tagOpenServerDay)); Register(typeof(HA712_tagMCNPCShow), typeof(DTCA712_tagMCNPCShow)); Register(typeof(HA3A1_tagMCModuleFightPowerInfo), typeof(DTCA3A1_tagMCModuleFightPowerInfo)); Register(typeof(HA705_tagSCQueryPlayerCacheResult), typeof(DTCA705_tagSCQueryPlayerCacheResult)); Register(typeof(HA3B7_tagMCBOSSAttactCnt), typeof(DTCA3B7_tagMCBOSSAttactCnt)); Register(typeof(H0101_tagServerPrepared), typeof(DTC0101_tagServerPrepared)); Register(typeof(H0102_tagCDBPlayer), typeof(DTC0102_tagCDBPlayer)); Register(typeof(H0115_tagAskClientVersion), typeof(DTC0115_tagAskClientVersion)); Register(typeof(H0104_tagServerDisconnect), typeof(DTC0104_tagServerDisconnect)); Register(typeof(H0113_tagServerHeart), typeof(DTC0113_tagServerHeart)); Register(typeof(H0107_tagShowLoginFrm), typeof(DTC0107_tagShowLoginFrm)); Register(typeof(H0103_tagNeedCreateRole), typeof(DTC0103_tagNeedCreateRole)); Register(typeof(H0111_tagOnlineReply), typeof(DTC0111_tagOnlineReply)); Register(typeof(H0309_tagPlayerLoginInfo), typeof(DTC0309_tagPlayerLoginInfo)); Register(typeof(HA106_tagMCCoinToGoldReport), typeof(DTCA106_tagMCCoinToGoldReport)); Register(typeof(H0418_tagObjInfoRefresh), typeof(DTC0418_tagObjInfoRefresh)); Register(typeof(HA709_tagObjInfoListRefresh), typeof(DTCA709_tagObjInfoListRefresh)); Register(typeof(H0212_tagNotifyCode), typeof(DTC0212_tagNotifyCode)); Register(typeof(H0304_tagPlayerGetExpView), typeof(DTC0304_tagPlayerGetExpView)); Register(typeof(H3201_tagGMCmdAnswer), typeof(DTC3201_tagGMCmdAnswer)); Register(typeof(H3202_tagServerResponse), typeof(DTC3202_tagServerResponse)); Register(typeof(H0109_tagServerPrepareOK), typeof(DTC0109_tagServerPrepareOK)); Register(typeof(H0820_tagMissionDict), typeof(DTC0820_tagMissionDict)); Register(typeof(H0827_tagMissionDesc), typeof(DTC0827_tagMissionDesc)); Register(typeof(HA31D_tagMCGodWeaponLVList), typeof(DTCA31D_tagMCGodWeaponLVList)); Register(typeof(H03F0_tagPyFakePack), typeof(DTC03F0_tagPyFakePack)); Register(typeof(H1801_tagGameServerGeneralPack), typeof(DTC1801_tagGameServerGeneralPack)); //Register(typeof(HA3B3_tagMCEquipPartStarLVInfo), typeof(DTCA3B3_tagMCEquipPartStarLVInfo)); Register(typeof(H0310_tagRoleSkillChange), typeof(DTC0310_tagRoleSkillChange)); Register(typeof(H0721_tagMakeItemAnswer), typeof(DTC0721_tagMakeItemAnswer)); Register(typeof(HA9A1_tagGCQueryCompensationResult), typeof(DTCA9A1_tagGCQueryCompensationResult)); Register(typeof(HA31A_tagMCGiveCompensationResult), typeof(DTCA31A_tagMCGiveCompensationResult)); Register(typeof(H0335_tagPlayerDienstgradPack), typeof(DTC0335_tagPlayerDienstgradPack)); Register(typeof(HA31F_tagMCRuneInfo), typeof(DTCA31F_tagMCRuneInfo)); Register(typeof(HA204_tagMCVPackRefresh), typeof(DTCA204_tagMCVPackRefresh)); Register(typeof(HA331_tagMCNotifyPlayerDictData), typeof(DTCA331_tagMCNotifyPlayerDictData)); Register(typeof(HA205_tagMCVPackClear), typeof(DTCA205_tagMCVPackClear)); Register(typeof(HA3BA_tagMCTrialTowerInfo), typeof(DTCA3BA_tagMCTrialTowerInfo)); Register(typeof(HA339_tagMCAttrFruitEatCntList), typeof(DTCA339_tagMCAttrFruitEatCntList)); Register(typeof(H0336_tagPlayerGetDienstgrad), typeof(DTC0336_tagPlayerGetDienstgrad)); Register(typeof(H0337_tagPlayerDelDienstgrad), typeof(DTC0337_tagPlayerDelDienstgrad)); Register(typeof(H0439_tagPlayerChangeDienstgrad), typeof(DTC0439_tagPlayerChangeDienstgrad)); Register(typeof(HA3BB_tagMCEquipPartXLAttrInfo), typeof(DTCA3BB_tagMCEquipPartXLAttrInfo)); Register(typeof(HB701_tagMCPetLV), typeof(DTCB701_tagMCPetLV)); Register(typeof(HA9AA_tagGCDelCompensationResult), typeof(DTCA9AA_tagGCDelCompensationResult)); Register(typeof(H0401_tagPlayerMapInit), typeof(DTC0401_tagPlayerMapInit)); Register(typeof(H0201_tagTalkGong), typeof(DTC0201_tagTalkGong)); Register(typeof(H0207_tagTalkArea), typeof(DTC0207_tagTalkArea)); Register(typeof(HA9A3_tagGCPYSpeakerContent), typeof(DTCA9A3_tagGCPYSpeakerContent)); Register(typeof(H0206_tagTalkMi), typeof(DTC0206_tagTalkMi)); Register(typeof(H0203_tagTalkBang), typeof(DTC0203_tagTalkBang)); Register(typeof(H0205_tagTalkDui), typeof(DTC0205_tagTalkDui)); Register(typeof(HA301_tagTrainHorseData), typeof(DTCA301_tagTrainHorseData)); Register(typeof(HA335_tagPyMCWorldAverageLv), typeof(DTCA335_tagPyMCWorldAverageLv)); Register(typeof(H1001_tagBillboard), typeof(DTC1001_tagBillboard)); Register(typeof(HA504_tagMCPlayerTechInfo), typeof(DTCA504_tagMCPlayerTechInfo)); Register(typeof(H0F03_tagRoleFamilyInfo), typeof(DTC0F03_tagRoleFamilyInfo)); Register(typeof(HA3A6_tagMCUpdateFamilyContribution), typeof(DTCA3A6_tagMCUpdateFamilyContribution)); Register(typeof(H0430_tagPlayerInFamilyInfoRefresh), typeof(DTC0430_tagPlayerInFamilyInfoRefresh)); Register(typeof(H0F05_tagFamilyChange), typeof(DTC0F05_tagFamilyChange)); Register(typeof(HA401_tagGCViewFamilyRequestInfo), typeof(DTCA401_tagGCViewFamilyRequestInfo)); Register(typeof(HA404_tagGCFamilyRedPacketInfo), typeof(DTCA404_tagGCFamilyRedPacketInfo)); Register(typeof(HA004_tagServerDateTime), typeof(DTCA004_tagServerDateTime)); Register(typeof(HA405_tagGCFamilyRedPacketGrabInfo), typeof(DTCA405_tagGCFamilyRedPacketGrabInfo)); Register(typeof(HA403_tagGCFamilyActionInfo), typeof(DTCA403_tagGCFamilyActionInfo)); Register(typeof(H0431_tagTimeTick), typeof(DTC0431_tagTimeTick)); Register(typeof(H0320_tagFBEnd), typeof(DTC0320_tagFBEnd)); Register(typeof(H0319_tagFBHelp), typeof(DTC0319_tagFBHelp)); Register(typeof(H0823_tagDelMission), typeof(DTC0823_tagDelMission)); Register(typeof(H0826_tagClearMissionDict), typeof(DTC0826_tagClearMissionDict)); Register(typeof(H0801_tagEventTalk), typeof(DTC0801_tagEventTalk)); Register(typeof(H0703_tagRolePickupItem), typeof(DTC0703_tagRolePickupItem)); Register(typeof(HAA31_tagMCActGrowupBuyInfo), typeof(DTCAA31_tagMCActGrowupBuyInfo)); Register(typeof(HA320_tagMCPlayerFBInfoData), typeof(DTCA320_tagMCPlayerFBInfoData)); Register(typeof(HA708_tagMCRunTaskAwardInfo), typeof(DTCA708_tagMCRunTaskAwardInfo)); Register(typeof(HA3BD_tagMCBuyEnterInfo), typeof(DTCA3BD_tagMCBuyEnterInfo)); Register(typeof(HA703_tagMCFBEnterTickList), typeof(DTCA703_tagMCFBEnterTickList)); Register(typeof(HA006_tagGCPyServerMapState), typeof(DTCA006_tagGCPyServerMapState)); Register(typeof(HA30A_tagMCFBEncourageInfo), typeof(DTCA30A_tagMCFBEncourageInfo)); Register(typeof(HA104_tagMCPlayerExpRate), typeof(DTCA104_tagMCPlayerExpRate)); Register(typeof(H0612_tagClearObjBuff), typeof(DTC0612_tagClearObjBuff)); Register(typeof(HA003_tagUniversalGameRecInfo), typeof(DTCA003_tagUniversalGameRecInfo)); Register(typeof(HA505_tagMCFamilyRedPacketGoldLimit), typeof(DTCA505_tagMCFamilyRedPacketGoldLimit)); Register(typeof(H0403_tagPlayerLoginLoadOK), typeof(DTC0403_tagPlayerLoginLoadOK));//数据初始化完成 Register(typeof(HA814_tagMCMakeItemAnswer), typeof(DTCA814_tagMCMakeItemAnswer)); //得到合成结果回应 Register(typeof(HA317_tagMCAllEquipAttrActiveInfo), typeof(DTCA317_tagMCAllEquipAttrActiveInfo)); //得到激活全身星级和全身强化的信息 Register(typeof(HA321_tagMCPrayElixirResult), typeof(DTCA321_tagMCPrayElixirResult)); //祈福丹药结果 Register(typeof(HA921_tagUpdatePlayerNameResult), typeof(DTCA921_tagUpdatePlayerNameResult)); //玩家改名 Register(typeof(HB205_tagMCHelpBattleCheckInResult), typeof(DTCB205_tagMCHelpBattleCheckInResult)); Register(typeof(HB206_tagMCHelpBattleCallResult), typeof(DTCB206_tagMCHelpBattleCallResult)); Register(typeof(HB207_tagMCHelpBattleList), typeof(DTCB207_tagMCHelpBattleList)); Register(typeof(HB208_tagMCAddXianyuanCoinMsg), typeof(DTCB208_tagMCAddXianyuanCoinMsg)); Register(typeof(HB211_tagMCHelpBattleRecordList), typeof(DTCB211_tagMCHelpBattleRecordList)); Register(typeof(HC001_tagGCCrossRealmPKMatchOK), typeof(DTCC001_tagGCCrossRealmPKMatchOK)); Register(typeof(HC003_tagGCCrossRealmPKOverInfo), typeof(DTCC003_tagGCCrossRealmPKOverInfo)); Register(typeof(HC004_tagGCCrossRealmPKSeasonInfo), typeof(DTCC004_tagGCCrossRealmPKSeasonInfo)); Register(typeof(HC101_tagMCCrossRealmPKPlayerInfo), typeof(DTCC101_tagMCCrossRealmPKPlayerInfo)); Register(typeof(HC102_tagMCCrossRealmPKAwardState), typeof(DTCC102_tagMCCrossRealmPKAwardState)); //Register(typeof(HC005_tagGCCrossRealmPKBillboardInfo), typeof(DTCC005_tagGCCrossRealmPKBillboardInfo)); Register(typeof(HC006_tagGCCrossRealmPKSeasonState), typeof(DTCC006_tagGCCrossRealmPKSeasonState)); Register(typeof(HAA1F_tagMCLuckyTreasureInfo), typeof(DTCAA1F_tagMCLuckyTreasureInfo)); Register(typeof(HAA1E_tagMCLuckyTreasureResultInfo), typeof(DTCAA1E_tagMCLuckyTreasureResultInfo)); #region 背包 Register(typeof(H0724_tagRolePackCanUseCount), typeof(DTC0724_tagRolePackCanUseCount)); Register(typeof(H0704_tagRolePackRefresh), typeof(DTC0704_tagRolePackRefresh)); Register(typeof(H0709_tagClearItem), typeof(DTC0709_tagClearItem)); Register(typeof(H0707_tagItemCountRefresh), typeof(DTC0707_tagItemCountRefresh)); Register(typeof(H0706_tagUseItemSuccess), typeof(DTC0706_tagUseItemSuccess)); Register(typeof(H0711_tagClearItemPack), typeof(DTC0711_tagClearItemPack)); Register(typeof(H0316_tagPackResetOK), typeof(DTC0316_tagPackResetOK)); Register(typeof(H0725_tagRolePackRefreshEx), typeof(DTC0725_tagRolePackRefreshEx)); #endregion #region 社交玩家 Register(typeof(HB301_tagGCAddSocialPlayer), typeof(DTCB301_tagGCAddSocialPlayer)); Register(typeof(HB302_tagGCDelSocialPlayer), typeof(DTCB302_tagGCDelSocialPlayer)); Register(typeof(HB303_tagGCFriendAskIfJoin), typeof(DTCB303_tagGCFriendAskIfJoin)); Register(typeof(HB304_tagGCSocialPlayers), typeof(DTCB304_tagGCSocialPlayers)); Register(typeof(HB305_tagGCSocialName), typeof(DTCB305_tagGCSocialName)); Register(typeof(HB306_tagGCSocialOnline), typeof(DTCB306_tagGCSocialOnline)); Register(typeof(HB307_tagGCSocialRefreshType), typeof(DTCB307_tagGCSocialRefreshType)); Register(typeof(HB308_tagGCGroupPlayers), typeof(DTCB308_tagGCGroupPlayers)); Register(typeof(HB309_tagGCAnswerPlayerShortInfo), typeof(DTCB309_tagGCAnswerPlayerShortInfo)); Register(typeof(HA9A8_tagGCRecommendFriendsInfo), typeof(DTCA9A8_tagGCRecommendFriendsInfo)); #endregion #region 移动相关定义 Register(typeof(H0501_tagObjMove), typeof(DTC0501_tagObjMove)); Register(typeof(H0502_tagObjStopMove), typeof(DTC0502_tagObjStopMove)); Register(typeof(H0503_tagPlayerMoveStart), typeof(DTC0503_tagPlayerMoveStart)); Register(typeof(H0504_tagPlayerMoveStop), typeof(DTC0504_tagPlayerMoveStop)); Register(typeof(H0505_tagRoleMoveFail), typeof(DTC0505_tagRoleMoveFail)); #endregion #region 角色出现消失 Register(typeof(H0405_tagPlayerDisappear), typeof(DTC0405_tagPlayerDisappear)); Register(typeof(H0406_tagNPCAppear), typeof(DTC0406_tagNPCAppear)); Register(typeof(H0407_tagNPCDisappear), typeof(DTC0407_tagNPCDisappear)); Register(typeof(H0408_tagPlayerSummonNPCAppear), typeof(DTC0408_tagPlayerSummonNPCAppear)); Register(typeof(H0434_tagAreaPlayerAppearEx), typeof(DTC0434_tagAreaPlayerAppearEx)); Register(typeof(H0435_tagPetAppear), typeof(DTC0435_tagPetAppear)); #endregion #region 角色战斗逻辑 Register(typeof(HA202_tagMCAttackMode), typeof(DTCA202_tagMCAttackMode)); Register(typeof(H0602_tagObjBaseAttack), typeof(DTC0602_tagObjBaseAttack)); Register(typeof(H0603_tagPlayerUseSkill), typeof(DTC0603_tagPlayerUseSkill)); Register(typeof(H0605_tagObjAddBuff), typeof(DTC0605_tagObjAddBuff)); Register(typeof(H0606_tagObjDelBuff), typeof(DTC0606_tagObjDelBuff)); Register(typeof(H0608_tagNPCDie), typeof(DTC0608_tagNPCDie)); Register(typeof(H0609_tagPlayerDie), typeof(DTC0609_tagPlayerDie)); Register(typeof(H0610_tagNPCUseSkill), typeof(DTC0610_tagNPCUseSkill)); Register(typeof(H0614_tagUseSkillPos), typeof(DTC0614_tagUseSkillPos)); Register(typeof(H0617_tagObjAddBuffPack), typeof(DTC0617_tagObjAddBuffPack)); Register(typeof(H0701_tagItemDrop), typeof(DTC0701_tagItemDrop)); Register(typeof(H0702_tagDropItemDisappear), typeof(DTC0702_tagDropItemDisappear)); Register(typeof(H0423_tagObjPropertyRefreshView), typeof(DTC0423_tagObjPropertyRefreshView)); Register(typeof(H0428_tagPlayerRideHorse), typeof(DTC0428_tagPlayerRideHorse)); Register(typeof(H0429_tagObjResetPos), typeof(DTC0429_tagObjResetPos)); Register(typeof(H0413_tagPlayerChangeEquip), typeof(DTC0413_tagPlayerChangeEquip)); Register(typeof(H0415_tagPlayerUnEquipItem), typeof(DTC0415_tagPlayerUnEquipItem)); Register(typeof(H0419_tagPlayerReborn), typeof(DTC0419_tagPlayerReborn)); Register(typeof(HB401_tagMCSkillHurtList), typeof(DTCB401_tagMCSkillHurtList)); Register(typeof(HB402_tagMCRush), typeof(DTCB402_tagMCRush)); Register(typeof(HB403_tagMCAttackFail), typeof(DTCB403_tagMCAttackFail)); Register(typeof(HB404_tagMCNPCSkillWarn), typeof(DTCB404_tagMCNPCSkillWarn)); Register(typeof(H0433_tagDownHorse), typeof(DTC0433_tagDownHorse)); Register(typeof(HB414_tagMCMoveByType), typeof(DTCB414_tagMCMoveByType)); #endregion #region 商店 Register(typeof(H0802_tagShopItem), typeof(DTC0802_tagShopItem)); Register(typeof(HA802_tagMCShopItemDayBuyCntInfo), typeof(DTCA802_tagMCShopItemDayBuyCntInfo)); Register(typeof(HA811_tagMCShoppingResult), typeof(DTCA811_tagMCShoppingResult)); #endregion #region 集市 Register(typeof(H1B01_tagPlayerBourseItemResult), typeof(DTC1B01_tagPlayerBourseItemResult)); Register(typeof(H1B02_tagBourseItemOnSaleResult), typeof(DTC1B02_tagBourseItemOnSaleResult)); Register(typeof(HA9AB_tagGCBourseRecordInfo), typeof(DTCA9AB_tagGCBourseRecordInfo)); Register(typeof(HA9AC_tagGCBourseItemPrice), typeof(DTCA9AC_tagGCBourseItemPrice)); #endregion #region 境界 Register(typeof(HA311_tagMCSyncRealmInfo), typeof(DTCA311_tagMCSyncRealmInfo)); Register(typeof(HA908_tagGCRealmFBHelpInfo), typeof(DTCA908_tagGCRealmFBHelpInfo)); Register(typeof(H0812_tagBeginPrepare), typeof(DTC0812_tagBeginPrepare)); Register(typeof(H0813_tagPrepareEnd), typeof(DTC0813_tagPrepareEnd)); #endregion #region 法宝 Register(typeof(HA340_tagMCSuccessInfoList), typeof(DTCA340_tagMCSuccessInfoInfoList)); Register(typeof(HA341_tagMCSuccessFinish), typeof(DTCA341_tagMCSuccessFinish)); Register(typeof(HA342_tagMCSuccessFinishAwardRecordList), typeof(DTCA342_tagMCSuccessFinishAwardRecordList)); #endregion #region 组队 Register(typeof(HB901_tagGCInviteJoinTeamInfo), typeof(DTCB901_tagGCInviteJoinTeamInfo)); Register(typeof(HB902_tagGCTeamMemberInfo), typeof(DTCB902_tagGCTeamMemberInfo)); Register(typeof(HB903_tagGCTeamInfoChange), typeof(DTCB903_tagGCTeamInfoChange)); Register(typeof(HB904_tagGCSceneTeamRefresh), typeof(DTCB904_tagGCSceneTeamRefresh)); Register(typeof(HB905_tagGCTeamMemberRefreshProperty), typeof(DTCB905_tagGCTeamMemberRefreshProperty)); Register(typeof(H0905_tagTeamClear), typeof(DTC0905_tagTeamClear)); Register(typeof(H0906_tagPlayerLeaveTeamMsg), typeof(DTC0906_tagPlayerLeaveTeamMsg)); Register(typeof(H0907_tagPlayerAskJoinTeam), typeof(DTC0907_tagPlayerAskJoinTeam)); Register(typeof(H0912_tagTeamMemberLoginInfo), typeof(DTC0912_tagTeamMemberLoginInfo)); Register(typeof(H0913_tagTeamMemberChangeMap), typeof(DTC0913_tagTeamMemberChangeMap)); Register(typeof(HB907_tagGCRequestJoinTeam), typeof(DTCB907_tagGCRequestJoinTeam)); Register(typeof(HB908_tagGCRecommendNearbyPlayerList), typeof(DTCB908_tagGCRecommendNearbyPlayerList)); Register(typeof(HB909_tagGCTagMapTeamList), typeof(DTCB909_tagGCTagMapTeamList)); Register(typeof(HB910_tagGCTeamMatchState), typeof(DTCB910_tagGCTeamMatchState)); Register(typeof(HB911_tagGCTeamEnterFBPrepare), typeof(DTCB911_tagGCTeamEnterFBPrepare)); #endregion #region 宝石 Register(typeof(HA3BC_tagMCStoneInfo), typeof(DTCA3BC_tagMCStoneInfo)); #endregion #region 福利 #region 签到 Register(typeof(HA30D_tagMCDaySignInfo), typeof(DTCA30D_tagMCDaySignInfo)); #endregion #region 祈愿 Register(typeof(HA330_tagMCBuySomething), typeof(DTCA330_tagMCBuySomething)); #endregion #endregion #region 死亡复活 Register(typeof(HB103_tagMCPlayerDeadTime), typeof(DTCB103_tagMCPlayerDeadTime)); #endregion #region Vip Register(typeof(HA601_tagMCNotifyVipTime), typeof(DTCA601_tagMCNotifyVipTime)); Register(typeof(HA604_tagMCVIPInfo), typeof(DTCA604_tagMCVIPInfo)); Register(typeof(HA605_tagMCVIPAwardMsg), typeof(DTCA605_tagMCVIPAwardMsg)); #endregion Register(typeof(HA315_tagMCDailyActionCnt), typeof(DTCA315_tagMCDailyActionCnt)); Register(typeof(HA333_tagMCDailyActivityInfoList), typeof(DTCA333_tagMCDailyActivityInfoList)); #region 守护 Register(typeof(HA812_tagMCGuradPickupItemSucc), typeof(DTCA812_tagMCGuradPickupItemSucc)); #endregion #region 炼丹炉 Register(typeof(HA3BE_tagMCMagicWeaponMsg), typeof(DTCA3BE_tagMCMagicWeaponMsg)); Register(typeof(HA3BF_tagMCPlayerStoveMsg), typeof(DTCA3BF_tagMCPlayerStoveMsg)); #endregion #region 打宝系统 Register(typeof(HA909_tagGCBossAttentionInfo), typeof(DTCA909_tagGCBossAttentionInfo)); Register(typeof(HA902_tagGCGameWorldBossInfo), typeof(DTCA902_tagGCGameWorldBossInfo)); #endregion #region 仙盟活跃 Register(typeof(HA316_tagMCFamilyActivityInfo), typeof(DTCA316_tagMCFamilyActivityInfo)); #endregion Register(typeof(HB405_tagMCAddExp), typeof(DTCB405_tagMCAddExp)); Register(typeof(HB912_tagGCTeamMemFuncDataList), typeof(DTCB912_tagGCTeamMemFuncDataList)); #region 我要太极 Register(typeof(HAB22_tagMCDiceExResult), typeof(DTCAB22_tagMCDiceExResult)); Register(typeof(HAB23_tagMCDiceAward), typeof(DTCAB23_tagMCDiceAward)); #endregion Register(typeof(HA349_tagMCRecoverNum), typeof(DTCA349_tagMCRecoverNum)); Register(typeof(HB109_tagMCGuajiInfo), typeof(DTCB109_tagMCGuajiInfo)); Register(typeof(HB104_tagMCStoryMissionStateInfo), typeof(DTCB104_tagMCStoryMissionStateInfo)); #region 仙魔之争 Register(typeof(HAC02_tagGCXMZZInfo), typeof(DTCAC02_tagGCXMZZInfo)); Register(typeof(HAC03_tagGCXMZZSelfInfo), typeof(DTCAC03_tagGCXMZZSelfInfo)); Register(typeof(HAC04_tagGCXMZZFightInfo), typeof(DTCAC04_tagGCXMZZFightInfo)); #endregion #region 宝箱 Register(typeof(HA809_tagMCItemDayUseCntInfo), typeof(DTCA809_tagMCItemDayUseCntInfo)); Register(typeof(HA810_tagMCNotifyUseItemGetItem), typeof(DTCA810_tagMCNotifyUseItemGetItem)); #endregion #region 七天登入 Register(typeof(HAA01_tagMCTotalLoginDayCntInfo), typeof(DTCAA01_tagMCTotalLoginDayCntInfo)); #endregion #region 七天在线奖励 Register(typeof(HA308_tagMCOnlinePrize), typeof(DTCA308_tagMCOnlinePrize)); #endregion //Register(typeof(HA337_tagMCGoldInvestInfo), typeof(DTCA337_tagMCGoldInvestInfo)); Register(typeof(HA338_tagMCInvestInfo), typeof(DTCA338_tagMCInvestInfo)); #region 寻宝 Register(typeof(HA350_tagMCTreasureResult), typeof(DTCA350_tagMCTreasureResult)); Register(typeof(HA351_tagMCTreasureInfo), typeof(DTCA351_tagMCTreasureInfo)); #endregion Register(typeof(HA348_tagMCXBXZAwardRecordList), typeof(DTCA348_tagMCXBXZAwardRecordList)); Register(typeof(HA31C_tagMCEquipDecomposeInfo), typeof(DTCA31C_tagMCEquipDecomposeInfo)); Register(typeof(HAA08_tagMCFirstGoldTime), typeof(DTCAA08_tagMCFirstGoldTime)); Register(typeof(HB202_tagMCPushNotificationsSetting), typeof(DTCB202_tagMCPushNotificationsSetting)); Register(typeof(HAA12_tagMCFlashGiftbagInfo), typeof(DTCAA12_tagMCFlashGiftbagInfo)); Register(typeof(HAA13_tagMCFlashGiftbagPlayerInfo), typeof(DTCAA13_tagMCFlashGiftbagPlayerInfo)); Register(typeof(HAA17_tagMCFlashSaleInfo), typeof(DTCAA17_tagMCFlashSaleInfo)); Register(typeof(HAA18_tagMCFlashSaleAppointmentInfo), typeof(DTCAA18_tagMCFlashSaleAppointmentInfo)); Register(typeof(HA906_tagGCStoreServerBuyCntInfo), typeof(DTCA906_tagGCStoreServerBuyCntInfo)); #region 仙界盛典 Register(typeof(HAC09_tagGCFairyCeremonyInfo), typeof(DTCAC09_tagGCFairyCeremonyInfo)); Register(typeof(HAA14_tagMCXJSDRecharge), typeof(DTCAA14_tagMCXJSDRecharge)); Register(typeof(HAA15_tagMCAllPeoplePartyInfo), typeof(DTCAA15_tagMCAllPeoplePartyInfo)); Register(typeof(HAC0B_tagGCNewFairyCeremonyInfo), typeof(DTCAC0B_tagGCNewFairyCeremonyInfo)); Register(typeof(HAA22_tagMCNewXJSDRecharge), typeof(DTCAA22_tagMCNewXJSDRecharge)); Register(typeof(HAA23_tagMCNewAllPeoplePartyInfo), typeof(DTCAA23_tagMCNewAllPeoplePartyInfo)); #endregion #region 神兽 Register(typeof(HA3C0_tagMCDogzInfo), typeof(DTCA3C0_tagMCDogzInfo)); Register(typeof(HA3C1_tagMCDogzHelpbattleState), typeof(DTCA3C1_tagMCDogzHelpbattleState)); #endregion Register(typeof(HA324_tagMCBindJadeWheelResult), typeof(DTCA324_tagMCBindJadeWheelResult)); Register(typeof(HAA19_tagMCActWishingWellInfo), typeof(DTCAA19_tagMCActWishingWellInfo)); Register(typeof(HAA1A_tagMCActWishingWellPlayerInfo), typeof(DTCAA1A_tagMCActWishingWellPlayerInfo)); Register(typeof(HAA1B_tagMCActWishingDragResult), typeof(DTCAA1B_tagMCActWishingDragResult)); Register(typeof(HB204_tagMCIceLodeInfo), typeof(DTCB204_tagMCIceLodeInfo)); Register(typeof(HA806_tagMCMysticalShopTimeInfo), typeof(DTCA806_tagMCMysticalShopTimeInfo)); Register(typeof(HAA0A_tagMCWeekPartyInfo), typeof(DTCAA0A_tagMCWeekPartyInfo)); Register(typeof(HAA0B_tagMCWeekPartyPlayerInfo), typeof(DTCAA0B_tagMCWeekPartyPlayerInfo)); Register(typeof(HAA0C_tagMCActLoginAwardInfo), typeof(DTCAA0C_tagMCActLoginAwardInfo)); Register(typeof(HAA0D_tagMCActLoginAwardPlayerInfo), typeof(DTCAA0D_tagMCActLoginAwardPlayerInfo)); Register(typeof(HAA20_tagMCFeastWeekPartyInfo), typeof(DTCAA20_tagMCFeastWeekPartyInfo)); Register(typeof(HAA21_tagMCFeastWeekPartyPlayerInfo), typeof(DTCAA21_tagMCFeastWeekPartyPlayerInfo)); #region 拍卖行 Register(typeof(HB501_tagGCAuctionItemInfo), typeof(DTCB501_tagGCAuctionItemInfo)); Register(typeof(HB502_tagGCPlayerAuctionItemInfo), typeof(DTCB502_tagGCPlayerAuctionItemInfo)); Register(typeof(HB503_tagGCPlayerAuctionRecordInfo), typeof(DTCB503_tagGCPlayerAuctionRecordInfo)); Register(typeof(HB504_tagGCAddAuctionItemInfo), typeof(DTCB504_tagGCAddAuctionItemInfo)); Register(typeof(HB505_tagGCFamilyAuctionItemInfo), typeof(DTCB505_tagGCFamilyAuctionItemInfo)); Register(typeof(HB506_tagGCAttentionAuctionItemInfo), typeof(DTCB506_tagGCAttentionAuctionItemInfo)); Register(typeof(HB507_tagGCAttentionAuctionItemID), typeof(DTCB507_tagGCAttentionAuctionItemID)); Register(typeof(HB508_tagGCRefreshAuctionItemInfo), typeof(DTCB508_tagGCRefreshAuctionItemInfo)); Register(typeof(HB509_tagGCClearAuctionItemInfo), typeof(DTCB509_tagGCClearAuctionItemInfo)); Register(typeof(HB510_tagGCBiddingItemInfo), typeof(DTCB510_tagGCBiddingItemInfo)); #endregion Register(typeof(HA3B3_tagMCEquipPartPlusInfo), typeof(DTCA3B3_tagMCEquipPartPlusInfo));//装备强化 //Register(typeof(HA502_tagMCFamilyActivityExchangeResult), typeof(DTCA502_tagMCFamilyActivityExchangeResult));//装备换活跃度 //Register(typeof(HAA24_tagMCDayFreeGoldGiftState), typeof(DTCAA24_tagMCDayFreeGoldGiftState)); Register(typeof(HAA25_tagMCDailyGiftbagInfo), typeof(DTCAA25_tagMCDailyGiftbagInfo)); Register(typeof(HAA26_tagMCDailyGiftbagPlayerInfo), typeof(DTCAA26_tagMCDailyGiftbagPlayerInfo)); Register(typeof(HAB01_tagMCBossFirstKillStateInfo), typeof(DTCAB01_tagMCBossFirstKillStateInfo)); Register(typeof(HB511_tagGCEquipStarAutoBuyCostInfo), typeof(DTCB511_tagGCEquipStarAutoBuyCostInfo)); Register(typeof(HA3B2_tagMCEquipPartSuiteActivateInfo), typeof(DTCA3B2_tagMCEquipPartSuiteActivateInfo)); Register(typeof(HA3C2_tagMCMasterPlusLVInfo), typeof(DTCA3C2_tagMCMasterPlusLVInfo)); #region 协助 Register(typeof(HB001_tagGCAssistInfoList), typeof(DTCB001_tagGCAssistInfoList)); Register(typeof(HB002_tagGCClearAssist), typeof(DTCB002_tagGCClearAssist)); Register(typeof(HB003_tagGCAssistingInfo), typeof(DTCB003_tagGCAssistingInfo)); Register(typeof(HB004_tagGCUseAssistThanksGiftPreview), typeof(DTCB004_tagGCUseAssistThanksGiftPreview)); Register(typeof(HB005_tagGCGetAssistThanksGiftPreview), typeof(DTCB005_tagGCGetAssistThanksGiftPreview)); Register(typeof(HB006_tagGCCanGetAssistThanksGiftCount), typeof(DTCB006_tagGCCanGetAssistThanksGiftCount)); Register(typeof(HB007_tagMCTodayAssistMoneyInfo), typeof(DTCB007_tagMCTodayAssistMoneyInfo)); Register(typeof(HB008_tagGCAssistOver), typeof(DTCB008_tagGCAssistOver)); Register(typeof(HB415_tagMCBossHurtValueRankInfo), typeof(DTCB415_tagMCBossHurtValueRankInfo)); #endregion Register(typeof(HB027_tagMCActivityPlaceInfo), typeof(DTCB027_tagMCActivityPlaceInfo)); Register(typeof(HAA28_tagMCRechargePrizePlayerInfo), typeof(DTCAA28_tagMCRechargePrizePlayerInfo)); Register(typeof(HAA27_tagMCActRechargePrizeInfo), typeof(DTCAA27_tagMCActRechargePrizeInfo)); Register(typeof(HAA40_tagMCActCollectWordsInfo), typeof(DTCAA40_tagMCActCollectWordsInfo)); Register(typeof(HAA41_tagMCActCollectWordsPlayerInfo), typeof(DTCAA41_tagMCActCollectWordsPlayerInfo)); Register(typeof(HA9A2_tagPYBillboardData), typeof(DTCA9A2_tagPYBillboardData)); #region 节日祝福 Register(typeof(HAA42_tagMCFeastLoginInfo), typeof(DTCAA42_tagMCFeastLoginInfo)); Register(typeof(HAA39_tagMCFeastLoginPlayerInfo), typeof(DTCAA39_tagMCFeastLoginPlayerInfo)); Register(typeof(HAA43_tagMCFeastWishInfo), typeof(DTCAA43_tagMCFeastWishInfo)); Register(typeof(HAA44_tagMCFeastWishPlayerInfo), typeof(DTCAA44_tagMCFeastWishPlayerInfo)); Register(typeof(HAA45_tagMCFeastWishResult), typeof(DTCAA45_tagMCFeastWishResult)); Register(typeof(HAA46_tagMCFeastTravelInfo), typeof(DTCAA46_tagMCFeastTravelInfo)); Register(typeof(HAA47_tagMCFeastTravelPlayerInfo), typeof(DTCAA47_tagMCFeastTravelPlayerInfo)); #endregion Register(typeof(HA3CC_tagMCCustomAwardInfo), typeof(DTCA3CC_tagMCCustomAwardInfo)); Register(typeof(HA9AD_tagGCSkyTowerPassPlayerInfo), typeof(DTCA9AD_tagGCSkyTowerPassPlayerInfo)); Register(typeof(HA40E_tagGCFamilyBosFBInfo), typeof(DTCA40E_tagGCFamilyBosFBInfo)); Register(typeof(HA507_tagMCFamilyBosFBPlayerInfo), typeof(DTCA507_tagMCFamilyBosFBPlayerInfo)); Register(typeof(HA3CD_tagMCHorseStarInfo), typeof(DTCA3CD_tagMCHorseStarInfo)); Register(typeof(HA3CE_tagMCTitleStarInfo), typeof(DTCA3CE_tagMCTitleStarInfo)); Register(typeof(HAA67_tagMCActBossTrialInfo), typeof(DTCAA67_tagMCActBossTrialInfo)); Register(typeof(HAA68_tagMCActBossTrialPlayerInfo), typeof(DTCAA68_tagMCActBossTrialPlayerInfo)); Register(typeof(HB217_tagMCRealmTowerInfo), typeof(DTCB217_tagMCRealmTowerInfo)); Register(typeof(HAA50_tagMCActSingleRechargeInfo), typeof(DTCAA50_tagMCActSingleRechargeInfo)); Register(typeof(HAA51_tagMCActSingleRechargePlayerInfo), typeof(DTCAA51_tagMCActSingleRechargePlayerInfo)); Register(typeof(HA411_tagGCChuangongInviteInfo), typeof(DTCA411_tagGCChuangongInviteInfo)); Register(typeof(HA412_tagGCChuangongStart), typeof(DTCA412_tagGCChuangongStart)); Register(typeof(HA508_tagMCFamilyAffairInfo), typeof(DTCA508_tagMCFamilyAffairInfo)); Register(typeof(HA509_tagMCFamilyZhenfaInfo), typeof(DTCA509_tagMCFamilyZhenfaInfo)); Register(typeof(HA510_tagMCChuangongResult), typeof(DTCA510_tagMCChuangongResult)); Register(typeof(HA511_tagMCFamilySitInfo), typeof(DTCA511_tagMCFamilySitInfo)); Register(typeof(HA720_tagMCCreateRoleAwardState), typeof(DTCA720_tagMCCreateRoleAwardState)); Register(typeof(HA30C_tagMCPlayerRewardGetRecord), typeof(DTCA30C_tagMCPlayerRewardGetRecord)); Register(typeof(HA707_tagMCPyTalk), typeof(DTCA707_tagMCPyTalk)); Register(typeof(HAA69_tagMCActLoginNew), typeof(DTCAA69_tagMCActLoginNew)); Register(typeof(HAA70_tagMCActLoginPlayerInfoNew), typeof(DTCAA70_tagMCActLoginPlayerInfoNew)); Register(typeof(HAA71_tagMCActTaskInfo), typeof(DTCAA71_tagMCActTaskInfo)); Register(typeof(HAA72_tagMCActTaskPlayerValueInfo), typeof(DTCAA72_tagMCActTaskPlayerValueInfo)); Register(typeof(HAA73_tagMCActTaskPlayerInfo), typeof(DTCAA73_tagMCActTaskPlayerInfo)); Register(typeof(HAA74_tagMCActBuyCountGiftInfo), typeof(DTCAA74_tagMCActBuyCountGiftInfo)); Register(typeof(HAA75_tagMCActBuyCountGiftPlayerInfo), typeof(DTCAA75_tagMCActBuyCountGiftPlayerInfo)); Register(typeof(HB030_tagMCPlayerMineAreaInfo), typeof(DTCB030_tagMCPlayerMineAreaInfo)); Register(typeof(HB032_tagGCMineItemPullPreviewRet), typeof(DTCB032_tagGCMineItemPullPreviewRet)); Register(typeof(HB033_tagGCMineAreaInfo), typeof(DTCB033_tagGCMineAreaInfo)); Register(typeof(HB034_tagGCMineAreaAwardInfo), typeof(DTCB034_tagGCMineAreaAwardInfo)); Register(typeof(HB035_tagGCMineAreaRecordInfo), typeof(DTCB035_tagGCMineAreaRecordInfo)); Register(typeof(HB420_tagMCTurnFightState), typeof(DTCB420_tagMCTurnFightState)); Register(typeof(HC007_tagGCCrossBillboardInfo), typeof(DTCC007_tagGCCrossBillboardInfo)); Register(typeof(HAA76_tagMCCrossActBossTrialInfo), typeof(DTCAA76_tagMCCrossActBossTrialInfo)); Register(typeof(HAA77_tagMCActFamilyCTGAssistInfo), typeof(DTCAA77_tagMCActFamilyCTGAssistInfo)); Register(typeof(HAA78_tagMCActFamilyCTGAssistPlayerInfo), typeof(DTCAA78_tagMCActFamilyCTGAssistPlayerInfo)); Register(typeof(HA008_tagGCPlayerRecInfo), typeof(DTCA008_tagGCPlayerRecInfo)); Register(typeof(HB120_tagMCZhanlingInfo), typeof(DTCB120_tagMCZhanlingInfo)); Register(typeof(HB020_tagGCWorshipInfoList), typeof(DTCB020_tagGCWorshipInfoList)); Register(typeof(HB021_tagGCWorshipResult), typeof(DTCB021_tagGCWorshipResult)); Register(typeof(HA360_tagMCGatherTheSoulInfo), typeof(DTCA360_tagMCGatherTheSoulInfo)); Register(typeof(HC107_tagMCCrossBattlefieldPlayerInfo), typeof(DTCC107_tagMCCrossBattlefieldPlayerInfo)); Register(typeof(HAA58_tagMCActXianXiaMJInfo), typeof(DTCAA58_tagMCActXianXiaMJInfo)); Register(typeof(HAA59_tagMCActXianXiaMJAwardItemResult), typeof(DTCAA59_tagMCActXianXiaMJAwardItemResult)); Register(typeof(HAA79_tagMCActXianXiaMJLayerInfo), typeof(DTCAA79_tagMCActXianXiaMJLayerInfo)); Register(typeof(HAA80_tagMCCrossActXianXiaMJInfo), typeof(DTCAA80_tagMCCrossActXianXiaMJInfo)); Register(typeof(HB920_tagGCFuncTeamRefresh), typeof(DTCB920_tagGCFuncTeamRefresh)); Register(typeof(HB921_tagGCQueryPlayerFuncTeamRet), typeof(DTCB921_tagGCQueryPlayerFuncTeamRet)); Register(typeof(HB922_tagGCFuncTeamList), typeof(DTCB922_tagGCFuncTeamList)); Register(typeof(HB923_tagGCFuncTeamDissolve), typeof(DTCB923_tagGCFuncTeamDissolve)); Register(typeof(HA206_tagMCAutoItemCountRefresh), typeof(DTCA206_tagMCAutoItemCountRefresh)); Register(typeof(HB315_tagGCRelatedPlayerOnlineState), typeof(DTCB315_tagGCRelatedPlayerOnlineState)); Register(typeof(HAA84_tagMCActHorsePetTrainInfo), typeof(DTCAA84_tagMCActHorsePetTrainInfo)); Register(typeof(HAA85_tagMCActHorsePetTrainPlayerInfo), typeof(DTCAA85_tagMCActHorsePetTrainPlayerInfo)); Register(typeof(HAA86_tagMCCrossActHorsePetTrainInfo), typeof(DTCAA86_tagMCCrossActHorsePetTrainInfo)); Register(typeof(HB112_tagMCTrainRealmLVInfo), typeof(DTCB112_tagMCTrainRealmLVInfo)); Register(typeof(HAA81_tagMCActGubaoInfo), typeof(DTCAA81_tagMCActGubaoInfo)); Register(typeof(HAA82_tagMCActGubaoPlayerInfo), typeof(DTCAA82_tagMCActGubaoPlayerInfo)); Register(typeof(HAA83_tagMCCrossActGubaoInfo), typeof(DTCAA83_tagMCCrossActGubaoInfo)); Register(typeof(HA927_tagGCXiangongNewPlayerInfo), typeof(DTCA927_tagGCXiangongNewPlayerInfo)); Register(typeof(HA928_tagGCXiangongRecPlayerInfo), typeof(DTCA928_tagGCXiangongRecPlayerInfo)); Register(typeof(HB114_tagMCXiangongInfo), typeof(DTCB114_tagMCXiangongInfo)); Register(typeof(HB115_tagMCTiandaoTreeInfo), typeof(DTCB115_tagMCTiandaoTreeInfo)); Register(typeof(HB116_tagMCUseMoneyTotalInfo), typeof(DTCB116_tagMCUseMoneyTotalInfo)); Register(typeof(HB117_tagMCFaceInfo), typeof(DTCB117_tagMCFaceInfo)); Register(typeof(HB118_tagMCFacePicInfo), typeof(DTCB118_tagMCFacePicInfo)); Register(typeof(HA721_tagMCEmojiPackInfo), typeof(DTCA721_tagMCEmojiPackInfo)); Register(typeof(HA512_tagMCFamilyZhenbaogeInfo), typeof(DTCA512_tagMCFamilyZhenbaogeInfo)); Register(typeof(HA801_tagMCGiveAwardInfo), typeof(DTCA801_tagMCGiveAwardInfo)); Register(typeof(HAA88_tagMCActLunhuidianInfo), typeof(DTCAA88_tagMCActLunhuidianInfo)); Register(typeof(HAA89_tagMCActLunhuidianPlayerInfo), typeof(DTCAA89_tagMCActLunhuidianPlayerInfo)); Register(typeof(HAA87_tagMCActYunshiInfo), typeof(DTCAA87_tagMCActYunshiInfo)); Register(typeof(HAA90_tagMCCrossActLianqiInfo), typeof(DTCAA90_tagMCCrossActLianqiInfo)); Register(typeof(HAA91_tagMCActLianqiPlayerInfo), typeof(DTCAA91_tagMCActLianqiPlayerInfo)); } //主工程注册封包 public static void Register(Type _pack, Type _business) { var packInstance = _pack.Assembly.CreateInstance(_pack.Name) as GameNetPackBasic; var businessInstance = _business.Assembly.CreateInstance(_business.Name) as DtcBasic; if (packToBusinessTable.ContainsKey(packInstance.cmd)) { DebugEx.LogErrorFormat("重复封包登记: {0}!", _pack.Name); } else { packToBusinessTable[packInstance.cmd] = businessInstance; packageTable[packInstance.cmd] = _pack; } } public static bool Contain(ushort _cmd) { return packToBusinessTable.ContainsKey(_cmd); } public static void Distribute(GameNetPackBasic _package) { try { //执行主工程的封包 if (packToBusinessTable.ContainsKey(_package.cmd)) packToBusinessTable[_package.cmd].Done(_package); } catch (Exception ex) { DebugEx.LogError(ex.Message + "\r\n" + ex.StackTrace); DebugEx.LogErrorFormat("封包是否为Null:{0};", _package == null); if (_package != null) { DebugEx.LogErrorFormat("封包编号是:{0};", _package.cmd); } } } /// /// 转换一个协议包 /// /// /// public static GameNetPackBasic TransPack(ServerType socketType, ushort cmd, byte[] vBytes) { #if UNITY_EDITOR int length = vBytes.Length; string vStr = ""; for (int i = 0; i < length; i++) { vStr += vBytes[i].ToString("x2").ToUpper() + ","; } #endif // 主工程有登记 if (packageTable.ContainsKey(cmd)) { var packageType = packageTable[cmd]; // 实例化并强转为协议包基类 var packageInstance = packageType.Assembly.CreateInstance(packageType.Name) as GameNetPackBasic; packageInstance.ReadFromBytes(vBytes);// 解析内容 if (packageInstance.cmd == (ushort)0x03F0 || packageInstance.cmd == (ushort)0x1801) { byte[] vPyBody = new byte[vBytes.Length - 4]; Array.Copy(vBytes, 4, vPyBody, 0, vPyBody.Length); packageInstance = TransForPyPack(vPyBody); } packageInstance.socketType = socketType; #if UNITY_EDITOR NetPkgCtl.RecordPackage(socketType, vStr, NetPackagetType.Server, packageInstance.ToString(), FieldPrint.PrintFields(packageInstance), FieldPrint.PrintFieldsExpand(packageInstance, true)); #endif return packageInstance; } else //未注册 { #if UNITY_EDITOR NetPkgCtl.RecordPackage(socketType, vStr, NetPackagetType.Server, string.Empty, string.Empty, null); #endif } return null; } /// /// 解析PY的模拟包 /// /// /// private static GameNetPackBasic TransForPyPack(byte[] vBytes) { GameNetPackBasic vNetPackInst = null; ushort vPackCmd = (ushort)((ushort)(vBytes[0] << 8) + vBytes[1]); // 主工程封包 if (packageTable.ContainsKey(vPackCmd)) { Type vNetPackType = packageTable[vPackCmd]; vNetPackInst = vNetPackType.Assembly.CreateInstance(vNetPackType.Name) as GameNetPackBasic; vNetPackInst.ReadFromBytes(vBytes);// 解析内容 } else { DebugEx.Log("收到未定义的解包协议:" + vBytes[0].ToString("x2").ToUpper() + "," + vBytes[1].ToString("x2").ToUpper()); } return vNetPackInst; } }