| | |
| | | // 登记相应的数据体及对应的数据转逻辑类(去重后) |
| | | Register(typeof(H0102_tagCDBPlayer), typeof(DTC0102_tagCDBPlayer)); |
| | | Register(typeof(HA004_tagServerDateTime), typeof(DTCA004_tagServerDateTime)); |
| | | Register(typeof(HA005_tagOpenServerDay), typeof(DTCA005_tagOpenServerDay)); |
| | | Register(typeof(HA103_tagMCOpenServerDay), typeof(DTCA103_tagMCOpenServerDay)); |
| | | Register(typeof(H0403_tagPlayerLoginLoadOK), typeof(DTC0403_tagPlayerLoginLoadOK)); |
| | | Register(typeof(H0101_tagServerPrepared), typeof(DTC0101_tagServerPrepared)); |
| | | Register(typeof(H0104_tagServerDisconnect), typeof(DTC0104_tagServerDisconnect)); |
| | |
| | | Register(typeof(HA501_tagMCNotifyRequestJoinFamilyInfo), typeof(DTCA501_tagMCNotifyRequestJoinFamilyInfo)); |
| | | Register(typeof(HA705_tagSCQueryPlayerCacheResult), typeof(DTCA705_tagSCQueryPlayerCacheResult)); |
| | | Register(typeof(HA801_tagMCGiveAwardInfo), typeof(DTCA801_tagMCGiveAwardInfo)); |
| | | Register(typeof(HA802_tagMCShopItemDayBuyCntInfo), typeof(DTCA802_tagMCShopItemDayBuyCntInfo)); |
| | | Register(typeof(HA802_tagSCShopItemBuyCntInfo), typeof(DTCA802_tagSCShopItemBuyCntInfo)); |
| | | Register(typeof(HA803_tagSCShopRefreshItemInfo), typeof(DTCA803_tagSCShopRefreshItemInfo)); |
| | | Register(typeof(HA809_tagMCItemDayUseCntInfo), typeof(DTCA809_tagMCItemDayUseCntInfo)); |
| | | Register(typeof(HA811_tagMCShoppingResult), typeof(DTCA811_tagMCShoppingResult)); |
| | | Register(typeof(HA721_tagMCEmojiPackInfo), typeof(DTCA721_tagMCEmojiPackInfo)); |
| | | Register(typeof(HB117_tagMCFaceInfo), typeof(DTCB117_tagMCFaceInfo)); |
| | | Register(typeof(HB118_tagMCFacePicInfo), typeof(DTCB118_tagMCFacePicInfo)); |
| | | Register(typeof(HB120_tagMCZhanlingInfo), typeof(DTCB120_tagMCZhanlingInfo)); |
| | | Register(typeof(HA311_tagMCSyncRealmInfo), typeof(DTCA311_tagMCSyncRealmInfo)); |
| | | Register(typeof(HB110_tagMCTaskInfo), typeof(DTCB110_tagMCTaskInfo)); |
| | | Register(typeof(HA921_tagUpdatePlayerNameResult), typeof(DTCA921_tagUpdatePlayerNameResult)); |
| | | Register(typeof(H3202_tagServerResponse), typeof(DTC3202_tagServerResponse)); |
| | | Register(typeof(HA130_tagMCViewBillboardRet), typeof(DTCA130_tagMCViewBillboardRet)); |
| | | Register(typeof(HB419_tagSCObjHPRefresh), typeof(DTCB419_tagSCObjHPRefresh)); |
| | | Register(typeof(HB420_tagMCTurnFightState), typeof(DTCB420_tagMCTurnFightState)); |
| | | Register(typeof(HB421_tagMCTurnFightObjAction), typeof(DTCB421_tagMCTurnFightObjAction)); |
| | | Register(typeof(HB422_tagMCTurnFightObjDead), typeof(DTCB422_tagMCTurnFightObjDead)); |
| | |
| | | Register(typeof(HB125_tagSCPlayerHeroInfo), typeof(DTCB125_tagSCPlayerHeroInfo)); |
| | | Register(typeof(HA814_tagMCMakeItemAnswer), typeof(DTCA814_tagMCMakeItemAnswer)); |
| | | Register(typeof(HB122_tagSCHeroInfo), typeof(DTCB122_tagSCHeroInfo)); |
| | | Register(typeof(HA338_tagMCInvestInfo), typeof(DTCA338_tagMCInvestInfo)); |
| | | Register(typeof(HA338_tagSCInvestInfo), typeof(DTCA338_tagSCInvestInfo)); |
| | | Register(typeof(HB121_tagMCTreeInfo), typeof(DTCB121_tagMCTreeInfo)); |
| | | Register(typeof(HA720_tagMCCreateRoleAwardState), typeof(DTCA720_tagMCCreateRoleAwardState)); |
| | | Register(typeof(HB405_tagMCAddExp), typeof(DTCB405_tagMCAddExp)); |
| | |
| | | Register(typeof(HA722_tagSCADInfoList), typeof(DTCA722_tagSCADInfoList)); |
| | | Register(typeof(H0320_tagFBEnd), typeof(DTC0320_tagFBEnd)); |
| | | Register(typeof(HA502_tagSCDonateCntInfo), typeof(DTCA502_tagSCDonateCntInfo)); |
| | | Register(typeof(HA512_tagMCFamilyZhenbaogeInfo), typeof(DTCA512_tagMCFamilyZhenbaogeInfo)); |
| | | Register(typeof(HA513_tagMCFamilyActionInfo), typeof(DTCA513_tagMCFamilyActionInfo)); |
| | | Register(typeof(HA520_tagMCRoleFamilyInfo), typeof(DTCA520_tagMCRoleFamilyInfo)); |
| | | Register(typeof(HA521_tagMCFamilyChange), typeof(DTCA521_tagMCFamilyChange)); |
| | |
| | | Register(typeof(HA009_tagSCGameRecInfo), typeof(DTCA009_tagSCGameRecInfo)); |
| | | Register(typeof(HA922_tagSCArenaMatchList), typeof(DTCA922_tagSCArenaMatchList)); |
| | | Register(typeof(HA923_tagSCArenaPlayerInfo), typeof(DTCA923_tagSCArenaPlayerInfo)); |
| | | Register(typeof(HB109_tagSCDailyTaskInfo), typeof(DTCB109_tagSCDailyTaskInfo)); |
| | | Register(typeof(HB201_tagSCTianziKYInfo), typeof(DTCB201_tagSCTianziKYInfo)); |
| | | Register(typeof(HA340_tagSCSuccessInfoList), typeof(DTCA340_tagSCSuccessInfoList)); |
| | | Register(typeof(HA342_tagSCSuccessAwardRecordList), typeof(DTCA342_tagSCSuccessAwardRecordList)); |
| | | Register(typeof(HB128_tagSCLLMJInfo), typeof(DTCB128_tagSCLLMJInfo)); |
| | | Register(typeof(HA30D_tagSCDaySignInfo), typeof(DTCA30D_tagSCDaySignInfo)); |
| | | Register(typeof(HA123_tagUpdatePlayerNameCount), typeof(DTCA123_tagUpdatePlayerNameCount)); |
| | | Register(typeof(HA921_tagSCRenameResult), typeof(DTCA921_tagSCRenameResult)); |
| | | Register(typeof(HA303_tagSCHorseClassInfo), typeof(DTCA303_tagSCHorseClassInfo)); |
| | | Register(typeof(HA304_tagSCHorseSkinInfo), typeof(DTCA304_tagSCHorseSkinInfo)); |
| | | } |
| | | |
| | | //主工程注册封包 |
| | |
| | | } |
| | | public static void Distribute(GameNetPackBasic _package) |
| | | { |
| | | |
| | | #if UNITY_EDITOR |
| | | if (_package.socketType == ServerType.MainFight) |
| | | NetPkgCtl.RecordPackage(ServerType.MainFight, string.Empty, NetPackagetType.Server, _package.ToString(), FieldPrint.PrintFields(_package), FieldPrint.PrintFieldsExpand(_package, true)); |
| | | #endif |
| | | |
| | | try |
| | | { |
| | | //执行主工程的封包 |