fix(server): allow restoring the saved arena lobby

This commit is contained in:
2026-10-04 12:09:39 +08:00
parent 39e0a99201
commit c29204dcb0
4 changed files with 81 additions and 30 deletions
+31 -25
View File
@@ -4,31 +4,37 @@ package feature
// features. An empty protobuf means the local account currently has no rows or
// no active server schedule; it is not copied from a captured response.
var standaloneDefaults = map[string]int{
"/EventScheduleInfo": 163,
"/LoginEvent": 0,
"/BalanceVersionCheck": 186,
"/ChargeCostInfo": 123,
"/EquipInfo": 34,
"/AchievementInfo": 166,
"/HuntDispatchInfo": 189,
"/EventMissionInfo": 127,
"/MissionInfo": 118,
"/EventRewardHistory": 0,
"/PackEventStoryInfo": 220,
"/PackEventBattleInfo": 214,
"/FishingItemInfo": 459,
"/MonsterHuntDeckInfo": 263,
"/Attendance": 0,
"/AttendanceInfo": 0,
"/PackPreviewInfo": 104,
"/TodayQuestInfo": 64,
"/WaypointInfo": 31,
"/FieldDeckInfo": 273,
"/HuntingGroundInfoList": 387,
"/FriendRecommend": 211,
"/SupporterStatus": 438,
"/SupporterBattleInfo": 439,
"/InnOpen": 109,
"/EventScheduleInfo": 163,
"/LoginEvent": 0,
"/BalanceVersionCheck": 186,
"/ChargeCostInfo": 123,
"/EquipInfo": 34,
"/AchievementInfo": 166,
"/HuntDispatchInfo": 189,
"/EventMissionInfo": 127,
"/MissionInfo": 118,
"/EventRewardHistory": 0,
"/PackEventStoryInfo": 220,
"/PackEventBattleInfo": 214,
"/FishingItemInfo": 459,
"/MonsterHuntDeckInfo": 263,
"/Attendance": 0,
"/AttendanceInfo": 0,
"/PackPreviewInfo": 104,
// No PvP decks, battle history or one-time reward claims have been saved.
// Their repeated-only protobufs encode these account states as empty, and
// the client's callbacks continue the arena-lobby entry sequence.
"/PvpBattleDeckInfo": 87,
"/PvpBattleHistory": 97,
"/PvpBattleOnceRewardInfo": 277,
"/TodayQuestInfo": 64,
"/WaypointInfo": 31,
"/FieldDeckInfo": 273,
"/HuntingGroundInfoList": 387,
"/FriendRecommend": 211,
"/SupporterStatus": 438,
"/SupporterBattleInfo": 439,
"/InnOpen": 109,
}
// commandSuccess contains idempotent local mutations whose response type is