From 2b3fe1175765e0df62caba9dc160c0dbfefb0a8a Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 06 二月 2026 12:22:12 +0800
Subject: [PATCH] 0312 优化断线界面返回登录界面
---
Main/Core/NetworkPackage/DataToCtl/PackageRegedit.cs | 51 +++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 43 insertions(+), 8 deletions(-)
diff --git a/Main/Core/NetworkPackage/DataToCtl/PackageRegedit.cs b/Main/Core/NetworkPackage/DataToCtl/PackageRegedit.cs
index 81e9230..61060a4 100644
--- a/Main/Core/NetworkPackage/DataToCtl/PackageRegedit.cs
+++ b/Main/Core/NetworkPackage/DataToCtl/PackageRegedit.cs
@@ -41,8 +41,8 @@
Register(typeof(H0707_tagItemCountRefresh), typeof(DTC0707_tagItemCountRefresh));
Register(typeof(H0709_tagClearItem), typeof(DTC0709_tagClearItem));
Register(typeof(H0711_tagClearItemPack), typeof(DTC0711_tagClearItemPack));
- Register(typeof(HA204_tagMCVPackRefresh), typeof(DTCA204_tagMCVPackRefresh));
- Register(typeof(HA205_tagMCVPackClear), typeof(DTCA205_tagMCVPackClear));
+ // Register(typeof(HA204_tagMCVPackRefresh), typeof(DTCA204_tagMCVPackRefresh));
+ // Register(typeof(HA205_tagMCVPackClear), typeof(DTCA205_tagMCVPackClear));
Register(typeof(HA206_tagMCAutoItemCountRefresh), typeof(DTCA206_tagMCAutoItemCountRefresh));
Register(typeof(HA710_tagMCGuideState), typeof(DTCA710_tagMCGuideState));
Register(typeof(H0418_tagObjInfoRefresh), typeof(DTC0418_tagObjInfoRefresh));
@@ -70,13 +70,11 @@
Register(typeof(HA802_tagSCShopItemBuyCntInfo), typeof(DTCA802_tagSCShopItemBuyCntInfo));
Register(typeof(HA803_tagSCShopRefreshItemInfo), typeof(DTCA803_tagSCShopRefreshItemInfo));
Register(typeof(HA809_tagMCItemDayUseCntInfo), typeof(DTCA809_tagMCItemDayUseCntInfo));
- 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));
@@ -93,13 +91,13 @@
Register(typeof(HB430_tagSCTurnFightReport), typeof(DTCB430_tagSCTurnFightReport));
Register(typeof(H0407_tagNPCDisappear), typeof(DTC0407_tagNPCDisappear));
Register(typeof(HB418_tagSCObjPropertyRefreshView), typeof(DTCB418_tagSCObjPropertyRefreshView));
- Register(typeof(HB124_tagSCLineupInfo), typeof(DTCB124_tagSCLineupInfo));
+ Register(typeof(HB124_tagSCHeroPresetInfo), typeof(DTCB124_tagSCHeroPresetInfo));
Register(typeof(HA207_tagSCPackBuyInfo), typeof(DTCA207_tagSCPackBuyInfo));
Register(typeof(H0722_tagItemDeadLockRefresh), typeof(DTC0722_tagItemDeadLockRefresh));
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));
@@ -112,7 +110,8 @@
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(HA524_tagSCFamilyMemDel), typeof(DTCA524_tagSCFamilyMemDel));
+ Register(typeof(HA505_tagSCFamilyCrossInfo), typeof(DTCA505_tagSCFamilyCrossInfo));
Register(typeof(HA522_tagMCFamilyReqJoinInfo), typeof(DTCA522_tagMCFamilyReqJoinInfo));
Register(typeof(HA523_tagMCFamilyViewList), typeof(DTCA523_tagMCFamilyViewList));
Register(typeof(HA009_tagSCGameRecInfo), typeof(DTCA009_tagSCGameRecInfo));
@@ -120,6 +119,36 @@
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));
+ Register(typeof(HB119_tagSCModelInfo), typeof(DTCB119_tagSCModelInfo));
+ Register(typeof(HB126_tagSCTitleInfo), typeof(DTCB126_tagSCTitleInfo));
+ Register(typeof(HB127_tagSCChatBoxInfo), typeof(DTCB127_tagSCChatBoxInfo));
+ Register(typeof(HB431_tagSCTurnFightRet), typeof(DTCB431_tagSCTurnFightRet));
+ Register(typeof(HB310_tagMCTalk), typeof(DTCB310_tagMCTalk));
+ Register(typeof(HB311_tagMCTalkCacheList), typeof(DTCB311_tagMCTalkCacheList));
+ Register(typeof(HA319_tagMCPackDownloadRecord), typeof(DTCA319_tagMCPackDownloadRecord));
+ Register(typeof(HB129_tagSCLineupRecommendInfo), typeof(DTCB129_tagSCLineupRecommendInfo));
+ Register(typeof(HAB05_tagSCOSACelebrationInfo), typeof(DTCAB05_tagSCOSACelebrationInfo));
+ Register(typeof(HB131_tagSCHeroFatesInfo), typeof(DTCB131_tagSCHeroFatesInfo));
+ Register(typeof(HB130_tagSCBeautyInfo), typeof(DTCB130_tagSCBeautyInfo));
+ Register(typeof(HB040_tagSCTravelInfo), typeof(DTCB040_tagSCTravelInfo));
+ Register(typeof(HA3C7_tagMCGubaoInfo), typeof(DTCA3C7_tagMCGubaoInfo));
+ Register(typeof(HB202_tagSCDingjungeInfo), typeof(DTCB202_tagSCDingjungeInfo));
+ Register(typeof(HB432_tagSCViewNPCAttrRet), typeof(DTCB432_tagSCViewNPCAttrRet));
+ Register(typeof(HA503_tagSCFamilyTaofaInfo), typeof(DTCA503_tagSCFamilyTaofaInfo));
+ Register(typeof(HA504_tagSCFamilyTaofaAtkRet), typeof(DTCA504_tagSCFamilyTaofaAtkRet));
+ Register(typeof(HB132_tagSCMinggeInfo), typeof(DTCB132_tagSCMinggeInfo));
+ Register(typeof(HB161_tagSCFuncPresetInfoList), typeof(DTCB161_tagSCFuncPresetInfoList));
+ Register(typeof(HB162_tagSCFuncPresetSwitchInfo), typeof(DTCB162_tagSCFuncPresetSwitchInfo));
+ Register(typeof(HB163_tagSCBatPresetSwitchInfo), typeof(DTCB163_tagSCBatPresetSwitchInfo));
+ Register(typeof(HA001_tagBroadCastInfo), typeof(DTCA001_tagBroadCastInfo));
}
//涓诲伐绋嬫敞鍐屽皝鍖�
@@ -144,6 +173,12 @@
}
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
{
//鎵ц涓诲伐绋嬬殑灏佸寘
@@ -157,7 +192,7 @@
Debug.LogErrorFormat("灏佸寘鏄惁涓篘ull:{0};", _package == null);
if (_package != null)
{
- Debug.LogErrorFormat("灏佸寘缂栧彿鏄�:{0};", _package.cmd);
+ Debug.LogErrorFormat("灏佸寘缂栧彿鏄�:{0}; 鍚嶆槸{1}", _package.cmd, _package.GetType().Name);
}
}
}
--
Gitblit v1.8.0