use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[repr(i32)]
pub enum PacketCodeType {
    Common = 0,
    PingCheck = 1,
    JoinUser = 2,
    LoginUser = 3,
    PackInfo = 4,
    PackInGameInfo = 5,
    PackBuy = 6,
    SaveUserPosition = 7,
    DeckInfo = 8,
    CharInfo = 9,
    DeckSave = 10,
    CharAllRevival = 11,
    CharLevelUp = 12,
    MercenaryScout = 13,
    BattleStart = 14,
    BattleEnd = 15,
    QuestInfo = 16,
    QuestAccept = 17,
    QuestClear = 18,
    QuestUpdate = 19,
    QuestGiveUp = 20,
    ItemInfo = 21,
    EatFood = 22,
    ItemDump = 23,
    InvenAddSlot = 24,
    StorageAddSlot = 25,
    ItemStorageUpdate = 26,
    EatFoodAuto = 27,
    FieldObjectInfo = 28,
    FieldObjectReward = 29,
    FieldObjectRespawn = 30,
    WaypointInfo = 31,
    WaypointSave = 32,
    WaypointUse = 33,
    EquipInfo = 34,
    EquipUse = 35,
    EquipClear = 36,
    EquipUpgrade = 37,
    EquipLock = 38,
    EquipAddSlot = 39,
    CostumeInfo = 40,
    CostumeUse = 41,
    CostumeUpgrade = 42,
    TalentSkillUse = 43,
    TalentSkillUpgrade = 44,
    EquipChange = 45,
    RecipeInfo = 46,
    CookingResearch = 47,
    Cooking = 48,
    Alchemy = 49,
    EquipMaking = 50,
    MonsterInfo = 51,
    BattleEnter = 52,
    ShopInfo = 53,
    ShopBuy = 54,
    ShopSell = 55,
    EquipBreak = 56,
    BattleGiveUp = 57,
    BattleRetry = 58,
    FieldObjectResearch = 59,
    CashShopInfo = 60,
    CashShopBuy = 61,
    CharHealing = 62,
    TrapDamage = 63,
    TodayQuestInfo = 64,
    CharPartnerInfo = 65,
    CharPartnerReward = 66,
    CharPartnerStoryReward = 67,
    NpcReputationInfo = 68,
    NpcReputationRecovery = 69,
    QuestImmortalReset = 70,
    TalentSlotSave = 71,
    PackJamEvent = 72,
    UserLevelReward = 73,
    UserNicknameChange = 74,
    UserPortraitChange = 75,
    ItemStoragePut = 76,
    ItemStorageOut = 77,
    ItemStorageInfo = 78,
    EquipStoragePut = 79,
    EquipStorageOut = 80,
    EquipStorageInfo = 81,
    EquipStorageAddSlot = 82,
    FieldMonsterEvent = 83,
    FieldMonsterReward = 84,
    FieldMonsterDamage = 85,
    PvpBattleUserInfo = 86,
    PvpBattleDeckInfo = 87,
    PvpBattleDeckSave = 88,
    PvpBattleMatching = 89,
    PvpBattleStart = 90,
    PvpBattleEnd = 91,
    PvpBattleReward = 92,
    PvpBattleRanking = 93,
    PvpBattleRankUserDetail = 94,
    FieldObjecPositionUpdate = 95,
    CharImmortal = 96,
    PvpBattleHistory = 97,
    PvpBattleHistoryDeckInfo = 98,
    CharClassUp = 99,
    TimePause = 100,
    TutorialInfo = 101,
    TutorialClear = 102,
    ActiveMiniMap = 103,
    PackPreviewInfo = 104,
    EquipSmelting = 105,
    ReputationInfo = 106,
    ShopOpen = 107,
    DispatchReward = 108,
    InnOpen = 109,
    HuntingGroundEnter = 110,
    PictorialBookInfo = 111,
    EvilCastleInfo = 112,
    EvilCastleEnter = 113,
    EvilCastleRakingList = 114,
    EvilCastleStageClearReward = 115,
    EvilCastleStageRankingInfo = 116,
    ScheduleInfo = 117,
    MissionInfo = 118,
    MissionUpdate = 119,
    MissionClear = 120,
    NotusechargeCost = 121,
    MissionSectionReward = 122,
    ChargeCostInfo = 123,
    PassInfo = 124,
    EvilCastlePing = 125,
    PassReward = 126,
    EventMissionInfo = 127,
    NoneUse128 = 128,
    PassBuy = 129,
    ServerNowTime = 130,
    MailInfo = 131,
    MailOpen = 132,
    CharExpiry = 133,
    HuntingGroundInfo = 134,
    EvilCastleRewardInfo = 135,
    PvpSeasonReward = 136,
    QuestMaxClearInfo = 137,
    MailHistoryInfo = 138,
    FieldMonsterRegen = 139,
    CashMailInfo = 140,
    BattleVerify = 141,
    BattleVerifyState = 142,
    UseRandomBox = 143,
    FieldObjectPreview = 144,
    GachaInfo = 145,
    GachaBuy = 146,
    GachaPointExchange = 147,
    CharSpecialScoutInfo = 148,
    CharSpecialScoutBuy = 149,
    CharSpecialScoutReset = 150,
    EventReward = 151,
    EquipsUse = 155,
    LeaveUser = 156,
    CancelLeaveUser = 157,
    PlatformLogin = 158,
    SelectPlatformOtherData = 159,
    SkyWayInfo = 160,
    SkyWayEnter = 161,
    SkyWayScheduleInfo = 162,
    EventScheduleInfo = 163,
    AllCharRefresh = 165,
    AchievementInfo = 166,
    AchievementUpdate = 167,
    AchievementClear = 168,
    FieldTrapInfo = 171,
    InteractionTrigger = 172,
    JpUser = 173,
    JpUserInfo = 174,
    GachaBuyPreview = 175,
    EquipSequenceUpgrade = 176,
    EquipSequenceSmelting = 177,
    PresetInfo = 178,
    PresetSave = 179,
    PresetAddSlot = 180,
    BattleEndTest = 181,
    EventExchangeInfo = 183,
    EventExchangeReward = 184,
    EventExchangeNextPageOpen = 185,
    BalanceVersionCheck = 186,
    LogoutUser = 187,
    GachaPointManualExchange = 188,
    HuntDispatchInfo = 189,
    HuntDispatchStart = 190,
    HuntDispatchEnd = 191,
    EquipOptionReRoll = 192,
    EquipOptionReRollConfirm = 193,
    HuntDispatchRewardPreview = 194,
    NoticeDetailInfo = 195,
    MonsterHuntUserInfo = 196,
    MonsterHuntRankInfo = 197,
    GachaSelectionSave = 198,
    PersonalInfo = 199,
    EvilCastleTowerInfo = 200,
    GachaLogInfo = 201,
    StatueObjectReward = 202,
    LikeUser = 203,
    FriendInfoList = 204,
    FriendSend = 205,
    FriendAccept = 206,
    FriendRefuse = 207,
    FriendRemove = 208,
    FriendSendList = 209,
    FriendReceiveList = 210,
    FriendRecommend = 211,
    FriendSearch = 212,
    FriendSendRemove = 213,
    PackEventBattleInfo = 214,
    UserContentsInfo = 215,
    UserContentsInfoOption = 216,
    UpdateUserContentsInfoOption = 217,
    MyLikeInfo = 218,
    UserGreetingChange = 219,
    PackEventStoryInfo = 220,
    PackEventStoryClear = 221,
    EventHubInfoResponse = 222,
    MiniGameBoardInfo = 223,
    MiniGameBoardPlay = 224,
    UserTitleChange = 225,
    PackRewardObjectCount = 226,
    PackSubQuestClearInfo = 227,
    MyRoomUserInfo = 228,
    MyRoomSave = 229,
    MyRoomSearchFriend = 230,
    MyRoomSearchRecommend = 231,
    MyRoomItemInfo = 232,
    NoneUse233 = 233,
    MyRoomNameChange = 234,
    MyRoomPrimaryChange = 235,
    TotalWarInfo = 236,
    TotalWarDeckInfo = 237,
    TotalWarDeckSave = 238,
    TotalWarDeckPresetInfo = 239,
    TotalWarDeckPresetSave = 240,
    TotalWarDeckPresetSlotAdd = 241,
    TotalWarReward = 242,
    TotalWarBattleStart = 243,
    TotalWarBattleEnd = 244,
    MyRoomShopInfo = 245,
    MyRoomShopBuy = 246,
    MiniGameFieldInfo = 247,
    MiniGameFieldStart = 248,
    MiniGameFieldScore = 249,
    MiniGameFieldEnd = 250,
    MiniGameFieldQuickReward = 251,
    TotalWarRewardState = 252,
    EquipPresetInfo = 253,
    EquipPresetSave = 254,
    EquipsClear = 255,
    MiniGameBingoInfo = 256,
    MiniGameBingoPlay = 257,
    SaveTotalBattlePower = 258,
    EquipPresetNameChange = 259,
    FieldObjectRewardList = 260,
    QuickBattle = 261,
    AlchemyBatch = 262,
    MonsterHuntDeckInfo = 263,
    MonsterHuntDeckSave = 264,
    MonsterHuntChangeTeam = 265,
    MonsterHuntQuickBattle = 266,
    CostumePotentialConnect = 267,
    CostumeNodeActivation = 268,
    PopularCostumeInfo = 269,
    ClientCustomLog = 270,
    UseResourceItem = 271,
    FieldDeckInfo = 273,
    FieldDeckSave = 274,
    Overwhelm = 275,
    EquipBatchUse = 276,
    PvpBattleOnceRewardInfo = 277,
    PresetInfoChange = 278,
    EvilCastleRogueLikeInfo = 279,
    EvilCastleRogueLikeEnter = 280,
    EvilCastleRogueLikeGiveUp = 281,
    EvilCastleRogueLikeRoomEnter = 282,
    EvilCastleRogueLikeSelectReward = 283,
    EvilCastleRogueLikeRewardReRoll = 284,
    EvilCastleRogueLikeDeckSave = 285,
    ClearPackageReward = 286,
    BattleRetryPreviousTurn = 287,
    SaveFieldCharControlDeckType = 288,
    CommunityRewardInfo = 289,
    CommunityReward = 290,
    GuildRaidMainInfo = 291,
    GuildRaidNormalBattleInfo = 292,
    GuildRaidBossBattleInfo = 293,
    GuildRaidBossQuickBattle = 294,
    GuildCreate = 296,
    GuildInfo = 297,
    GuildLeave = 298,
    GuildRecommend = 299,
    GuildJoin = 300,
    GuildAccept = 301,
    GuildJoinRefuse = 302,
    GuildMemberBan = 303,
    GuildMemberRoleEdit = 304,
    GuildInfoEdit = 305,
    GuildSearch = 306,
    GuildSupporterList = 308,
    GuildRaidMemberRanking = 309,
    GuildRaidSeasonReward = 310,
    GuildJoinSendCancel = 311,
    GuildRaidDeckInfo = 312,
    GuildRaidDeckSave = 313,
    GuildJoinRequestInfo = 314,
    GuildDeleteCancel = 315,
    GuildRaidBossBattleEnter = 316,
    EvilCastleRogueLikeBattleCharChange = 317,
    EvilCastleRogueLikeEventSelect = 318,
    EvilCastleRogueLikeEventChoice = 319,
    EvilCastleRogueLikeShopBuy = 320,
    EvilCastleRogueLikeShopReRoll = 321,
    EvilCastleRogueLikeShopExit = 322,
    EvilCastleRogueLikeGrowth = 323,
    EvilCastleRogueLikeGiveUpInfo = 324,
    EvilCastleRogueLikeAllUserScoreInfo = 325,
    EvilCastleRogueLikeRankInfo = 326,
    EvilCastleRogueLikeSeasonReward = 327,
    MiniGameRunInfo = 328,
    MiniGameRunStart = 329,
    MiniGameRunEnd = 330,
    MiniGameRunQuickReward = 331,
    GuildInitInfo = 332,
    GuildSupporterAdd = 333,
    GuildSupporterDelete = 334,
    GuildUpdateActionInfo = 335,
    CharImprintInfo = 336,
    CharImprintLevelUp = 337,
    CharAwakeActive = 338,
    GuildRaidBossBattleHistory = 339,
    EvilCastleRogueLikeQuickBattle = 340,
    GuildSupporterInfo = 341,
    EvilCastleRogueLikeCostumeUpgrade = 342,
    MiniPuzzleInfo = 343,
    MiniPuzzleOpen = 344,
    MiniPuzzleAllOpen = 345,
    MiniPuzzleRenew = 346,
    EvilCastleRogueLikeRelicMix = 347,
    MiniGameSurvivalInfo = 348,
    MiniGameSurvivalStart = 349,
    MiniGameSurvivalEnd = 350,
    CafeteriaInfo = 351,
    CafeteriaSpawnReset = 352,
    CafeteriaLevelUp = 353,
    CafeteriaManageItemAdd = 354,
    CafeteriaRegularCostumeInteractionReward = 355,
    CafeteriaRegularCostumeInteractionAllReward = 356,
    CafeteriaCumulativeReward = 357,
    CafeteriaRegularCostumeNoteInfo = 358,
    CafeteriaRegularCostumeNoteReward = 359,
    CafeteriaRegularCostumeNoteAllReward = 360,
    DatingInfo = 361,
    DatingEpisodeClear = 362,
    DatingMessageUpdate = 363,
    MiniGameSurvivalPlay = 364,
    MiniGameSurvivalSkillUp = 365,
    MiniGameSurvivalQuickReward = 366,
    RootSortIdInfo = 367,
    MiniGameSurvivalRanking = 368,
    MiniGameSurvivalCharUpgrade = 369,
    MiniGameSurvivalSkillSelectList = 370,
    CafeteriaIntroductionStoryReward = 371,
    GuildRaidNormalBattleHistoryInfo = 374,
    GuildRaidMemberPlayHistoryInfo = 375,
    CafeteriaDailyConnectionCostumeRefresh = 376,
    CafeteriaRewardReceiptTimeUpdateUsingCheat = 377,
    MiniGameSichuanInfo = 378,
    MiniGameSichuanStart = 379,
    MiniGameSichuanEnd = 380,
    GuildNoticeInfo = 381,
    GuildNoticeUpdate = 382,
    MiniGameSichuanRanking = 383,
    EquipFromMakingToBreak = 384,
    EquipFromUpgradeToBreak = 385,
    EquipFromMakingToUpgrade = 386,
    HuntingGroundInfoList = 387,
    BattleExit = 388,
    MiniGameSurvivalCharUpgradeReset = 389,
    MiniGameHubInfo = 390,
    MiniGameDefenseInfo = 393,
    MiniGameDefenseStart = 394,
    MiniGameDefenseEnd = 395,
    RecommendDeckInfo = 396,
    DeckCostumeSettingInfo = 397,
    DeckCostumeSettingSave = 398,
    GuildRaidPresetSlotAdd = 399,
    MonsterHuntPresetSlotAdd = 400,
    PvpContentsItemRenew = 401,
    TotalWarContentsItemRenew = 402,
    GuildRaidPresetInfo = 403,
    GuildRaidPresetSave = 404,
    MonsterHuntPresetInfo = 405,
    MonsterHuntPresetSave = 406,
    EquipMarkSet = 407,
    EquipMarkDelete = 408,
    PresetUse = 409,
    MonsterHuntPresetUse = 410,
    GuildRaidPresetUse = 411,
    RecommendDeckUserOptionSave = 412,
    CafeteriaRareNpcInteractionReward = 413,
    CafeteriaEventNpcInteractionReward = 414,
    MiniGameRouletteInfo = 415,
    MiniGameRouletteDraw = 416,
    MyRoomExpand = 418,
    MyRoomMove = 419,
    MyRoomLike = 420,
    MiniGameActionInfo = 421,
    MiniGameActionStart = 422,
    MiniGameActionEnd = 423,
    MyRoomSearchGuild = 424,
    PrestigeSkinSet = 426,
    MiniGameRhythmInfo = 428,
    MiniGameRhythmPlayStart = 429,
    MiniGameRhythmPlayEnd = 430,
    CashShopPurchaseCountInfo = 432,
    CharGrowth = 433,
    SupporterDetail = 434,
    SupporterRegister = 435,
    SupporterRemove = 436,
    SupporterBorrow = 437,
    SupporterStatus = 438,
    SupporterBattleInfo = 439,
    EvilCastleDailyReward = 440,
    EvilCastleDailyRewardState = 441,
    SupporterReward = 442,
    SupporterInfo = 443,
    IdCardSave = 446,
    IdCardShopInfo = 447,
    IdCardShopBuy = 448,
    IdCardPresetSave = 449,
    IdCardPresetInfo = 450,
    IdCardPresetDelete = 451,
    IdCardRecovery = 452,
    GuildRaidBossPracticeBattleEnter = 453,
    EvilCastleRogueLikeBattleEndPreview = 466,
}

impl PacketCodeType {
    /// Get the route name as a string
    pub const fn route_name(&self) -> &'static str {
        match self {
            Self::Common => "Common",
            Self::PingCheck => "PingCheck",
            Self::JoinUser => "JoinUser",
            Self::LoginUser => "LoginUser",
            Self::PackInfo => "PackInfo",
            Self::PackInGameInfo => "PackInGameInfo",
            Self::PackBuy => "PackBuy",
            Self::SaveUserPosition => "SaveUserPosition",
            Self::DeckInfo => "DeckInfo",
            Self::CharInfo => "CharInfo",
            Self::DeckSave => "DeckSave",
            Self::CharAllRevival => "CharAllRevival",
            Self::CharLevelUp => "CharLevelUp",
            Self::MercenaryScout => "MercenaryScout",
            Self::BattleStart => "BattleStart",
            Self::BattleEnd => "BattleEnd",
            Self::QuestInfo => "QuestInfo",
            Self::QuestAccept => "QuestAccept",
            Self::QuestClear => "QuestClear",
            Self::QuestUpdate => "QuestUpdate",
            Self::QuestGiveUp => "QuestGiveUp",
            Self::ItemInfo => "ItemInfo",
            Self::EatFood => "EatFood",
            Self::ItemDump => "ItemDump",
            Self::InvenAddSlot => "InvenAddSlot",
            Self::StorageAddSlot => "StorageAddSlot",
            Self::ItemStorageUpdate => "ItemStorageUpdate",
            Self::EatFoodAuto => "EatFoodAuto",
            Self::FieldObjectInfo => "FieldObjectInfo",
            Self::FieldObjectReward => "FieldObjectReward",
            Self::FieldObjectRespawn => "FieldObjectRespawn",
            Self::WaypointInfo => "WaypointInfo",
            Self::WaypointSave => "WaypointSave",
            Self::WaypointUse => "WaypointUse",
            Self::EquipInfo => "EquipInfo",
            Self::EquipUse => "EquipUse",
            Self::EquipClear => "EquipClear",
            Self::EquipUpgrade => "EquipUpgrade",
            Self::EquipLock => "EquipLock",
            Self::EquipAddSlot => "EquipAddSlot",
            Self::CostumeInfo => "CostumeInfo",
            Self::CostumeUse => "CostumeUse",
            Self::CostumeUpgrade => "CostumeUpgrade",
            Self::TalentSkillUse => "TalentSkillUse",
            Self::TalentSkillUpgrade => "TalentSkillUpgrade",
            Self::EquipChange => "EquipChange",
            Self::RecipeInfo => "RecipeInfo",
            Self::CookingResearch => "CookingResearch",
            Self::Cooking => "Cooking",
            Self::Alchemy => "Alchemy",
            Self::EquipMaking => "EquipMaking",
            Self::MonsterInfo => "MonsterInfo",
            Self::BattleEnter => "BattleEnter",
            Self::ShopInfo => "ShopInfo",
            Self::ShopBuy => "ShopBuy",
            Self::ShopSell => "ShopSell",
            Self::EquipBreak => "EquipBreak",
            Self::BattleGiveUp => "BattleGiveUp",
            Self::BattleRetry => "BattleRetry",
            Self::FieldObjectResearch => "FieldObjectResearch",
            Self::CashShopInfo => "CashShopInfo",
            Self::CashShopBuy => "CashShopBuy",
            Self::CharHealing => "CharHealing",
            Self::TrapDamage => "TrapDamage",
            Self::TodayQuestInfo => "TodayQuestInfo",
            Self::CharPartnerInfo => "CharPartnerInfo",
            Self::CharPartnerReward => "CharPartnerReward",
            Self::CharPartnerStoryReward => "CharPartnerStoryReward",
            Self::NpcReputationInfo => "NpcReputationInfo",
            Self::NpcReputationRecovery => "NpcReputationRecovery",
            Self::QuestImmortalReset => "QuestImmortalReset",
            Self::TalentSlotSave => "TalentSlotSave",
            Self::PackJamEvent => "PackJamEvent",
            Self::UserLevelReward => "UserLevelReward",
            Self::UserNicknameChange => "UserNicknameChange",
            Self::UserPortraitChange => "UserPortraitChange",
            Self::ItemStoragePut => "ItemStoragePut",
            Self::ItemStorageOut => "ItemStorageOut",
            Self::ItemStorageInfo => "ItemStorageInfo",
            Self::EquipStoragePut => "EquipStoragePut",
            Self::EquipStorageOut => "EquipStorageOut",
            Self::EquipStorageInfo => "EquipStorageInfo",
            Self::EquipStorageAddSlot => "EquipStorageAddSlot",
            Self::FieldMonsterEvent => "FieldMonsterEvent",
            Self::FieldMonsterReward => "FieldMonsterReward",
            Self::FieldMonsterDamage => "FieldMonsterDamage",
            Self::PvpBattleUserInfo => "PvpBattleUserInfo",
            Self::PvpBattleDeckInfo => "PvpBattleDeckInfo",
            Self::PvpBattleDeckSave => "PvpBattleDeckSave",
            Self::PvpBattleMatching => "PvpBattleMatching",
            Self::PvpBattleStart => "PvpBattleStart",
            Self::PvpBattleEnd => "PvpBattleEnd",
            Self::PvpBattleReward => "PvpBattleReward",
            Self::PvpBattleRanking => "PvpBattleRanking",
            Self::PvpBattleRankUserDetail => "PvpBattleRankUserDetail",
            Self::FieldObjecPositionUpdate => "FieldObjecPositionUpdate",
            Self::CharImmortal => "CharImmortal",
            Self::PvpBattleHistory => "PvpBattleHistory",
            Self::PvpBattleHistoryDeckInfo => "PvpBattleHistoryDeckInfo",
            Self::CharClassUp => "CharClassUp",
            Self::TimePause => "TimePause",
            Self::TutorialInfo => "TutorialInfo",
            Self::TutorialClear => "TutorialClear",
            Self::ActiveMiniMap => "ActiveMiniMap",
            Self::PackPreviewInfo => "PackPreviewInfo",
            Self::EquipSmelting => "EquipSmelting",
            Self::ReputationInfo => "ReputationInfo",
            Self::ShopOpen => "ShopOpen",
            Self::DispatchReward => "DispatchReward",
            Self::InnOpen => "InnOpen",
            Self::HuntingGroundEnter => "HuntingGroundEnter",
            Self::PictorialBookInfo => "PictorialBookInfo",
            Self::EvilCastleInfo => "EvilCastleInfo",
            Self::EvilCastleEnter => "EvilCastleEnter",
            Self::EvilCastleRakingList => "EvilCastleRakingList",
            Self::EvilCastleStageClearReward => "EvilCastleStageClearReward",
            Self::EvilCastleStageRankingInfo => "EvilCastleStageRankingInfo",
            Self::ScheduleInfo => "ScheduleInfo",
            Self::MissionInfo => "MissionInfo",
            Self::MissionUpdate => "MissionUpdate",
            Self::MissionClear => "MissionClear",
            Self::NotusechargeCost => "NotusechargeCost",
            Self::MissionSectionReward => "MissionSectionReward",
            Self::ChargeCostInfo => "ChargeCostInfo",
            Self::PassInfo => "PassInfo",
            Self::EvilCastlePing => "EvilCastlePing",
            Self::PassReward => "PassReward",
            Self::EventMissionInfo => "EventMissionInfo",
            Self::NoneUse128 => "NoneUse128",
            Self::PassBuy => "PassBuy",
            Self::ServerNowTime => "ServerNowTime",
            Self::MailInfo => "MailInfo",
            Self::MailOpen => "MailOpen",
            Self::CharExpiry => "CharExpiry",
            Self::HuntingGroundInfo => "HuntingGroundInfo",
            Self::EvilCastleRewardInfo => "EvilCastleRewardInfo",
            Self::PvpSeasonReward => "PvpSeasonReward",
            Self::QuestMaxClearInfo => "QuestMaxClearInfo",
            Self::MailHistoryInfo => "MailHistoryInfo",
            Self::FieldMonsterRegen => "FieldMonsterRegen",
            Self::CashMailInfo => "CashMailInfo",
            Self::BattleVerify => "BattleVerify",
            Self::BattleVerifyState => "BattleVerifyState",
            Self::UseRandomBox => "UseRandomBox",
            Self::FieldObjectPreview => "FieldObjectPreview",
            Self::GachaInfo => "GachaInfo",
            Self::GachaBuy => "GachaBuy",
            Self::GachaPointExchange => "GachaPointExchange",
            Self::CharSpecialScoutInfo => "CharSpecialScoutInfo",
            Self::CharSpecialScoutBuy => "CharSpecialScoutBuy",
            Self::CharSpecialScoutReset => "CharSpecialScoutReset",
            Self::EventReward => "EventReward",
            Self::EquipsUse => "EquipsUse",
            Self::LeaveUser => "LeaveUser",
            Self::CancelLeaveUser => "CancelLeaveUser",
            Self::PlatformLogin => "PlatformLogin",
            Self::SelectPlatformOtherData => "SelectPlatformOtherData",
            Self::SkyWayInfo => "SkyWayInfo",
            Self::SkyWayEnter => "SkyWayEnter",
            Self::SkyWayScheduleInfo => "SkyWayScheduleInfo",
            Self::EventScheduleInfo => "EventScheduleInfo",
            Self::AllCharRefresh => "AllCharRefresh",
            Self::AchievementInfo => "AchievementInfo",
            Self::AchievementUpdate => "AchievementUpdate",
            Self::AchievementClear => "AchievementClear",
            Self::FieldTrapInfo => "FieldTrapInfo",
            Self::InteractionTrigger => "InteractionTrigger",
            Self::JpUser => "JpUser",
            Self::JpUserInfo => "JpUserInfo",
            Self::GachaBuyPreview => "GachaBuyPreview",
            Self::EquipSequenceUpgrade => "EquipSequenceUpgrade",
            Self::EquipSequenceSmelting => "EquipSequenceSmelting",
            Self::PresetInfo => "PresetInfo",
            Self::PresetSave => "PresetSave",
            Self::PresetAddSlot => "PresetAddSlot",
            Self::BattleEndTest => "BattleEndTest",
            Self::EventExchangeInfo => "EventExchangeInfo",
            Self::EventExchangeReward => "EventExchangeReward",
            Self::EventExchangeNextPageOpen => "EventExchangeNextPageOpen",
            Self::BalanceVersionCheck => "BalanceVersionCheck",
            Self::LogoutUser => "LogoutUser",
            Self::GachaPointManualExchange => "GachaPointManualExchange",
            Self::HuntDispatchInfo => "HuntDispatchInfo",
            Self::HuntDispatchStart => "HuntDispatchStart",
            Self::HuntDispatchEnd => "HuntDispatchEnd",
            Self::EquipOptionReRoll => "EquipOptionReRoll",
            Self::EquipOptionReRollConfirm => "EquipOptionReRollConfirm",
            Self::HuntDispatchRewardPreview => "HuntDispatchRewardPreview",
            Self::NoticeDetailInfo => "NoticeDetailInfo",
            Self::MonsterHuntUserInfo => "MonsterHuntUserInfo",
            Self::MonsterHuntRankInfo => "MonsterHuntRankInfo",
            Self::GachaSelectionSave => "GachaSelectionSave",
            Self::PersonalInfo => "PersonalInfo",
            Self::EvilCastleTowerInfo => "EvilCastleTowerInfo",
            Self::GachaLogInfo => "GachaLogInfo",
            Self::StatueObjectReward => "StatueObjectReward",
            Self::LikeUser => "LikeUser",
            Self::FriendInfoList => "FriendInfoList",
            Self::FriendSend => "FriendSend",
            Self::FriendAccept => "FriendAccept",
            Self::FriendRefuse => "FriendRefuse",
            Self::FriendRemove => "FriendRemove",
            Self::FriendSendList => "FriendSendList",
            Self::FriendReceiveList => "FriendReceiveList",
            Self::FriendRecommend => "FriendRecommend",
            Self::FriendSearch => "FriendSearch",
            Self::FriendSendRemove => "FriendSendRemove",
            Self::PackEventBattleInfo => "PackEventBattleInfo",
            Self::UserContentsInfo => "UserContentsInfo",
            Self::UserContentsInfoOption => "UserContentsInfoOption",
            Self::UpdateUserContentsInfoOption => "UpdateUserContentsInfoOption",
            Self::MyLikeInfo => "MyLikeInfo",
            Self::UserGreetingChange => "UserGreetingChange",
            Self::PackEventStoryInfo => "PackEventStoryInfo",
            Self::PackEventStoryClear => "PackEventStoryClear",
            Self::EventHubInfoResponse => "EventHubInfoResponse",
            Self::MiniGameBoardInfo => "MiniGameBoardInfo",
            Self::MiniGameBoardPlay => "MiniGameBoardPlay",
            Self::UserTitleChange => "UserTitleChange",
            Self::PackRewardObjectCount => "PackRewardObjectCount",
            Self::PackSubQuestClearInfo => "PackSubQuestClearInfo",
            Self::MyRoomUserInfo => "MyRoomUserInfo",
            Self::MyRoomSave => "MyRoomSave",
            Self::MyRoomSearchFriend => "MyRoomSearchFriend",
            Self::MyRoomSearchRecommend => "MyRoomSearchRecommend",
            Self::MyRoomItemInfo => "MyRoomItemInfo",
            Self::NoneUse233 => "NoneUse233",
            Self::MyRoomNameChange => "MyRoomNameChange",
            Self::MyRoomPrimaryChange => "MyRoomPrimaryChange",
            Self::TotalWarInfo => "TotalWarInfo",
            Self::TotalWarDeckInfo => "TotalWarDeckInfo",
            Self::TotalWarDeckSave => "TotalWarDeckSave",
            Self::TotalWarDeckPresetInfo => "TotalWarDeckPresetInfo",
            Self::TotalWarDeckPresetSave => "TotalWarDeckPresetSave",
            Self::TotalWarDeckPresetSlotAdd => "TotalWarDeckPresetSlotAdd",
            Self::TotalWarReward => "TotalWarReward",
            Self::TotalWarBattleStart => "TotalWarBattleStart",
            Self::TotalWarBattleEnd => "TotalWarBattleEnd",
            Self::MyRoomShopInfo => "MyRoomShopInfo",
            Self::MyRoomShopBuy => "MyRoomShopBuy",
            Self::MiniGameFieldInfo => "MiniGameFieldInfo",
            Self::MiniGameFieldStart => "MiniGameFieldStart",
            Self::MiniGameFieldScore => "MiniGameFieldScore",
            Self::MiniGameFieldEnd => "MiniGameFieldEnd",
            Self::MiniGameFieldQuickReward => "MiniGameFieldQuickReward",
            Self::TotalWarRewardState => "TotalWarRewardState",
            Self::EquipPresetInfo => "EquipPresetInfo",
            Self::EquipPresetSave => "EquipPresetSave",
            Self::EquipsClear => "EquipsClear",
            Self::MiniGameBingoInfo => "MiniGameBingoInfo",
            Self::MiniGameBingoPlay => "MiniGameBingoPlay",
            Self::SaveTotalBattlePower => "SaveTotalBattlePower",
            Self::EquipPresetNameChange => "EquipPresetNameChange",
            Self::FieldObjectRewardList => "FieldObjectRewardList",
            Self::QuickBattle => "QuickBattle",
            Self::AlchemyBatch => "AlchemyBatch",
            Self::MonsterHuntDeckInfo => "MonsterHuntDeckInfo",
            Self::MonsterHuntDeckSave => "MonsterHuntDeckSave",
            Self::MonsterHuntChangeTeam => "MonsterHuntChangeTeam",
            Self::MonsterHuntQuickBattle => "MonsterHuntQuickBattle",
            Self::CostumePotentialConnect => "CostumePotentialConnect",
            Self::CostumeNodeActivation => "CostumeNodeActivation",
            Self::PopularCostumeInfo => "PopularCostumeInfo",
            Self::ClientCustomLog => "ClientCustomLog",
            Self::UseResourceItem => "UseResourceItem",
            Self::FieldDeckInfo => "FieldDeckInfo",
            Self::FieldDeckSave => "FieldDeckSave",
            Self::Overwhelm => "Overwhelm",
            Self::EquipBatchUse => "EquipBatchUse",
            Self::PvpBattleOnceRewardInfo => "PvpBattleOnceRewardInfo",
            Self::PresetInfoChange => "PresetInfoChange",
            Self::EvilCastleRogueLikeInfo => "EvilCastleRogueLikeInfo",
            Self::EvilCastleRogueLikeEnter => "EvilCastleRogueLikeEnter",
            Self::EvilCastleRogueLikeGiveUp => "EvilCastleRogueLikeGiveUp",
            Self::EvilCastleRogueLikeRoomEnter => "EvilCastleRogueLikeRoomEnter",
            Self::EvilCastleRogueLikeSelectReward => "EvilCastleRogueLikeSelectReward",
            Self::EvilCastleRogueLikeRewardReRoll => "EvilCastleRogueLikeRewardReRoll",
            Self::EvilCastleRogueLikeDeckSave => "EvilCastleRogueLikeDeckSave",
            Self::ClearPackageReward => "ClearPackageReward",
            Self::BattleRetryPreviousTurn => "BattleRetryPreviousTurn",
            Self::SaveFieldCharControlDeckType => "SaveFieldCharControlDeckType",
            Self::CommunityRewardInfo => "CommunityRewardInfo",
            Self::CommunityReward => "CommunityReward",
            Self::GuildRaidMainInfo => "GuildRaidMainInfo",
            Self::GuildRaidNormalBattleInfo => "GuildRaidNormalBattleInfo",
            Self::GuildRaidBossBattleInfo => "GuildRaidBossBattleInfo",
            Self::GuildRaidBossQuickBattle => "GuildRaidBossQuickBattle",
            Self::GuildCreate => "GuildCreate",
            Self::GuildInfo => "GuildInfo",
            Self::GuildLeave => "GuildLeave",
            Self::GuildRecommend => "GuildRecommend",
            Self::GuildJoin => "GuildJoin",
            Self::GuildAccept => "GuildAccept",
            Self::GuildJoinRefuse => "GuildJoinRefuse",
            Self::GuildMemberBan => "GuildMemberBan",
            Self::GuildMemberRoleEdit => "GuildMemberRoleEdit",
            Self::GuildInfoEdit => "GuildInfoEdit",
            Self::GuildSearch => "GuildSearch",
            Self::GuildSupporterList => "GuildSupporterList",
            Self::GuildRaidMemberRanking => "GuildRaidMemberRanking",
            Self::GuildRaidSeasonReward => "GuildRaidSeasonReward",
            Self::GuildJoinSendCancel => "GuildJoinSendCancel",
            Self::GuildRaidDeckInfo => "GuildRaidDeckInfo",
            Self::GuildRaidDeckSave => "GuildRaidDeckSave",
            Self::GuildJoinRequestInfo => "GuildJoinRequestInfo",
            Self::GuildDeleteCancel => "GuildDeleteCancel",
            Self::GuildRaidBossBattleEnter => "GuildRaidBossBattleEnter",
            Self::EvilCastleRogueLikeBattleCharChange => "EvilCastleRogueLikeBattleCharChange",
            Self::EvilCastleRogueLikeEventSelect => "EvilCastleRogueLikeEventSelect",
            Self::EvilCastleRogueLikeEventChoice => "EvilCastleRogueLikeEventChoice",
            Self::EvilCastleRogueLikeShopBuy => "EvilCastleRogueLikeShopBuy",
            Self::EvilCastleRogueLikeShopReRoll => "EvilCastleRogueLikeShopReRoll",
            Self::EvilCastleRogueLikeShopExit => "EvilCastleRogueLikeShopExit",
            Self::EvilCastleRogueLikeGrowth => "EvilCastleRogueLikeGrowth",
            Self::EvilCastleRogueLikeGiveUpInfo => "EvilCastleRogueLikeGiveUpInfo",
            Self::EvilCastleRogueLikeAllUserScoreInfo => "EvilCastleRogueLikeAllUserScoreInfo",
            Self::EvilCastleRogueLikeRankInfo => "EvilCastleRogueLikeRankInfo",
            Self::EvilCastleRogueLikeSeasonReward => "EvilCastleRogueLikeSeasonReward",
            Self::MiniGameRunInfo => "MiniGameRunInfo",
            Self::MiniGameRunStart => "MiniGameRunStart",
            Self::MiniGameRunEnd => "MiniGameRunEnd",
            Self::MiniGameRunQuickReward => "MiniGameRunQuickReward",
            Self::GuildInitInfo => "GuildInitInfo",
            Self::GuildSupporterAdd => "GuildSupporterAdd",
            Self::GuildSupporterDelete => "GuildSupporterDelete",
            Self::GuildUpdateActionInfo => "GuildUpdateActionInfo",
            Self::CharImprintInfo => "CharImprintInfo",
            Self::CharImprintLevelUp => "CharImprintLevelUp",
            Self::CharAwakeActive => "CharAwakeActive",
            Self::GuildRaidBossBattleHistory => "GuildRaidBossBattleHistory",
            Self::EvilCastleRogueLikeQuickBattle => "EvilCastleRogueLikeQuickBattle",
            Self::GuildSupporterInfo => "GuildSupporterInfo",
            Self::EvilCastleRogueLikeCostumeUpgrade => "EvilCastleRogueLikeCostumeUpgrade",
            Self::MiniPuzzleInfo => "MiniPuzzleInfo",
            Self::MiniPuzzleOpen => "MiniPuzzleOpen",
            Self::MiniPuzzleAllOpen => "MiniPuzzleAllOpen",
            Self::MiniPuzzleRenew => "MiniPuzzleRenew",
            Self::EvilCastleRogueLikeRelicMix => "EvilCastleRogueLikeRelicMix",
            Self::MiniGameSurvivalInfo => "MiniGameSurvivalInfo",
            Self::MiniGameSurvivalStart => "MiniGameSurvivalStart",
            Self::MiniGameSurvivalEnd => "MiniGameSurvivalEnd",
            Self::CafeteriaInfo => "CafeteriaInfo",
            Self::CafeteriaSpawnReset => "CafeteriaSpawnReset",
            Self::CafeteriaLevelUp => "CafeteriaLevelUp",
            Self::CafeteriaManageItemAdd => "CafeteriaManageItemAdd",
            Self::CafeteriaRegularCostumeInteractionReward => {
                "CafeteriaRegularCostumeInteractionReward"
            }
            Self::CafeteriaRegularCostumeInteractionAllReward => {
                "CafeteriaRegularCostumeInteractionAllReward"
            }
            Self::CafeteriaCumulativeReward => "CafeteriaCumulativeReward",
            Self::CafeteriaRegularCostumeNoteInfo => "CafeteriaRegularCostumeNoteInfo",
            Self::CafeteriaRegularCostumeNoteReward => "CafeteriaRegularCostumeNoteReward",
            Self::CafeteriaRegularCostumeNoteAllReward => "CafeteriaRegularCostumeNoteAllReward",
            Self::DatingInfo => "DatingInfo",
            Self::DatingEpisodeClear => "DatingEpisodeClear",
            Self::DatingMessageUpdate => "DatingMessageUpdate",
            Self::MiniGameSurvivalPlay => "MiniGameSurvivalPlay",
            Self::MiniGameSurvivalSkillUp => "MiniGameSurvivalSkillUp",
            Self::MiniGameSurvivalQuickReward => "MiniGameSurvivalQuickReward",
            Self::RootSortIdInfo => "RootSortIdInfo",
            Self::MiniGameSurvivalRanking => "MiniGameSurvivalRanking",
            Self::MiniGameSurvivalCharUpgrade => "MiniGameSurvivalCharUpgrade",
            Self::MiniGameSurvivalSkillSelectList => "MiniGameSurvivalSkillSelectList",
            Self::CafeteriaIntroductionStoryReward => "CafeteriaIntroductionStoryReward",
            Self::GuildRaidNormalBattleHistoryInfo => "GuildRaidNormalBattleHistoryInfo",
            Self::GuildRaidMemberPlayHistoryInfo => "GuildRaidMemberPlayHistoryInfo",
            Self::CafeteriaDailyConnectionCostumeRefresh => {
                "CafeteriaDailyConnectionCostumeRefresh"
            }
            Self::CafeteriaRewardReceiptTimeUpdateUsingCheat => {
                "CafeteriaRewardReceiptTimeUpdateUsingCheat"
            }
            Self::MiniGameSichuanInfo => "MiniGameSichuanInfo",
            Self::MiniGameSichuanStart => "MiniGameSichuanStart",
            Self::MiniGameSichuanEnd => "MiniGameSichuanEnd",
            Self::GuildNoticeInfo => "GuildNoticeInfo",
            Self::GuildNoticeUpdate => "GuildNoticeUpdate",
            Self::MiniGameSichuanRanking => "MiniGameSichuanRanking",
            Self::EquipFromMakingToBreak => "EquipFromMakingToBreak",
            Self::EquipFromUpgradeToBreak => "EquipFromUpgradeToBreak",
            Self::EquipFromMakingToUpgrade => "EquipFromMakingToUpgrade",
            Self::HuntingGroundInfoList => "HuntingGroundInfoList",
            Self::BattleExit => "BattleExit",
            Self::MiniGameSurvivalCharUpgradeReset => "MiniGameSurvivalCharUpgradeReset",
            Self::MiniGameHubInfo => "MiniGameHubInfo",
            Self::MiniGameDefenseInfo => "MiniGameDefenseInfo",
            Self::MiniGameDefenseStart => "MiniGameDefenseStart",
            Self::MiniGameDefenseEnd => "MiniGameDefenseEnd",
            Self::RecommendDeckInfo => "RecommendDeckInfo",
            Self::DeckCostumeSettingInfo => "DeckCostumeSettingInfo",
            Self::DeckCostumeSettingSave => "DeckCostumeSettingSave",
            Self::GuildRaidPresetSlotAdd => "GuildRaidPresetSlotAdd",
            Self::MonsterHuntPresetSlotAdd => "MonsterHuntPresetSlotAdd",
            Self::PvpContentsItemRenew => "PvpContentsItemRenew",
            Self::TotalWarContentsItemRenew => "TotalWarContentsItemRenew",
            Self::GuildRaidPresetInfo => "GuildRaidPresetInfo",
            Self::GuildRaidPresetSave => "GuildRaidPresetSave",
            Self::MonsterHuntPresetInfo => "MonsterHuntPresetInfo",
            Self::MonsterHuntPresetSave => "MonsterHuntPresetSave",
            Self::EquipMarkSet => "EquipMarkSet",
            Self::EquipMarkDelete => "EquipMarkDelete",
            Self::PresetUse => "PresetUse",
            Self::MonsterHuntPresetUse => "MonsterHuntPresetUse",
            Self::GuildRaidPresetUse => "GuildRaidPresetUse",
            Self::RecommendDeckUserOptionSave => "RecommendDeckUserOptionSave",
            Self::CafeteriaRareNpcInteractionReward => "CafeteriaRareNpcInteractionReward",
            Self::CafeteriaEventNpcInteractionReward => "CafeteriaEventNpcInteractionReward",
            Self::MiniGameRouletteInfo => "MiniGameRouletteInfo",
            Self::MiniGameRouletteDraw => "MiniGameRouletteDraw",
            Self::MyRoomExpand => "MyRoomExpand",
            Self::MyRoomMove => "MyRoomMove",
            Self::MyRoomLike => "MyRoomLike",
            Self::MiniGameActionInfo => "MiniGameActionInfo",
            Self::MiniGameActionStart => "MiniGameActionStart",
            Self::MiniGameActionEnd => "MiniGameActionEnd",
            Self::MyRoomSearchGuild => "MyRoomSearchGuild",
            Self::PrestigeSkinSet => "PrestigeSkinSet",
            Self::MiniGameRhythmInfo => "MiniGameRhythmInfo",
            Self::MiniGameRhythmPlayStart => "MiniGameRhythmPlayStart",
            Self::MiniGameRhythmPlayEnd => "MiniGameRhythmPlayEnd",
            Self::CashShopPurchaseCountInfo => "CashShopPurchaseCountInfo",
            Self::CharGrowth => "CharGrowth",
            Self::SupporterDetail => "SupporterDetail",
            Self::SupporterRegister => "SupporterRegister",
            Self::SupporterRemove => "SupporterRemove",
            Self::SupporterBorrow => "SupporterBorrow",
            Self::SupporterStatus => "SupporterStatus",
            Self::SupporterBattleInfo => "SupporterBattleInfo",
            Self::EvilCastleDailyReward => "EvilCastleDailyReward",
            Self::EvilCastleDailyRewardState => "EvilCastleDailyRewardState",
            Self::SupporterReward => "SupporterReward",
            Self::SupporterInfo => "SupporterInfo",
            Self::IdCardSave => "IdCardSave",
            Self::IdCardShopInfo => "IdCardShopInfo",
            Self::IdCardShopBuy => "IdCardShopBuy",
            Self::IdCardPresetSave => "IdCardPresetSave",
            Self::IdCardPresetInfo => "IdCardPresetInfo",
            Self::IdCardPresetDelete => "IdCardPresetDelete",
            Self::IdCardRecovery => "IdCardRecovery",
            Self::GuildRaidBossPracticeBattleEnter => "GuildRaidBossPracticeBattleEnter",
            Self::EvilCastleRogueLikeBattleEndPreview => "EvilCastleRogueLikeBattleEndPreview",
        }
    }

    /// Get the packet code as i32
    pub const fn code(&self) -> i32 {
        *self as i32
    }

    /// Get both route name and packet code
    pub const fn info(&self) -> (&'static str, i32) {
        (self.route_name(), self.code())
    }

    /// Parse from route name string
    pub fn from_route_name(name: &str) -> Option<Self> {
        match name {
            "Common" => Some(Self::Common),
            "PingCheck" => Some(Self::PingCheck),
            "JoinUser" => Some(Self::JoinUser),
            "LoginUser" => Some(Self::LoginUser),
            "PackInfo" => Some(Self::PackInfo),
            "PackInGameInfo" => Some(Self::PackInGameInfo),
            "PackBuy" => Some(Self::PackBuy),
            "SaveUserPosition" => Some(Self::SaveUserPosition),
            "DeckInfo" => Some(Self::DeckInfo),
            "CharInfo" => Some(Self::CharInfo),
            "DeckSave" => Some(Self::DeckSave),
            "CharAllRevival" => Some(Self::CharAllRevival),
            "CharLevelUp" => Some(Self::CharLevelUp),
            "MercenaryScout" => Some(Self::MercenaryScout),
            "BattleStart" => Some(Self::BattleStart),
            "BattleEnd" => Some(Self::BattleEnd),
            "QuestInfo" => Some(Self::QuestInfo),
            "QuestAccept" => Some(Self::QuestAccept),
            "QuestClear" => Some(Self::QuestClear),
            "QuestUpdate" => Some(Self::QuestUpdate),
            "QuestGiveUp" => Some(Self::QuestGiveUp),
            "ItemInfo" => Some(Self::ItemInfo),
            "EatFood" => Some(Self::EatFood),
            "ItemDump" => Some(Self::ItemDump),
            "InvenAddSlot" => Some(Self::InvenAddSlot),
            "StorageAddSlot" => Some(Self::StorageAddSlot),
            "ItemStorageUpdate" => Some(Self::ItemStorageUpdate),
            "EatFoodAuto" => Some(Self::EatFoodAuto),
            "FieldObjectInfo" => Some(Self::FieldObjectInfo),
            "FieldObjectReward" => Some(Self::FieldObjectReward),
            "FieldObjectRespawn" => Some(Self::FieldObjectRespawn),
            "WaypointInfo" => Some(Self::WaypointInfo),
            "WaypointSave" => Some(Self::WaypointSave),
            "WaypointUse" => Some(Self::WaypointUse),
            "EquipInfo" => Some(Self::EquipInfo),
            "EquipUse" => Some(Self::EquipUse),
            "EquipClear" => Some(Self::EquipClear),
            "EquipUpgrade" => Some(Self::EquipUpgrade),
            "EquipLock" => Some(Self::EquipLock),
            "EquipAddSlot" => Some(Self::EquipAddSlot),
            "CostumeInfo" => Some(Self::CostumeInfo),
            "CostumeUse" => Some(Self::CostumeUse),
            "CostumeUpgrade" => Some(Self::CostumeUpgrade),
            "TalentSkillUse" => Some(Self::TalentSkillUse),
            "TalentSkillUpgrade" => Some(Self::TalentSkillUpgrade),
            "EquipChange" => Some(Self::EquipChange),
            "RecipeInfo" => Some(Self::RecipeInfo),
            "CookingResearch" => Some(Self::CookingResearch),
            "Cooking" => Some(Self::Cooking),
            "Alchemy" => Some(Self::Alchemy),
            "EquipMaking" => Some(Self::EquipMaking),
            "MonsterInfo" => Some(Self::MonsterInfo),
            "BattleEnter" => Some(Self::BattleEnter),
            "ShopInfo" => Some(Self::ShopInfo),
            "ShopBuy" => Some(Self::ShopBuy),
            "ShopSell" => Some(Self::ShopSell),
            "EquipBreak" => Some(Self::EquipBreak),
            "BattleGiveUp" => Some(Self::BattleGiveUp),
            "BattleRetry" => Some(Self::BattleRetry),
            "FieldObjectResearch" => Some(Self::FieldObjectResearch),
            "CashShopInfo" => Some(Self::CashShopInfo),
            "CashShopBuy" => Some(Self::CashShopBuy),
            "CharHealing" => Some(Self::CharHealing),
            "TrapDamage" => Some(Self::TrapDamage),
            "TodayQuestInfo" => Some(Self::TodayQuestInfo),
            "CharPartnerInfo" => Some(Self::CharPartnerInfo),
            "CharPartnerReward" => Some(Self::CharPartnerReward),
            "CharPartnerStoryReward" => Some(Self::CharPartnerStoryReward),
            "NpcReputationInfo" => Some(Self::NpcReputationInfo),
            "NpcReputationRecovery" => Some(Self::NpcReputationRecovery),
            "QuestImmortalReset" => Some(Self::QuestImmortalReset),
            "TalentSlotSave" => Some(Self::TalentSlotSave),
            "PackJamEvent" => Some(Self::PackJamEvent),
            "UserLevelReward" => Some(Self::UserLevelReward),
            "UserNicknameChange" => Some(Self::UserNicknameChange),
            "UserPortraitChange" => Some(Self::UserPortraitChange),
            "ItemStoragePut" => Some(Self::ItemStoragePut),
            "ItemStorageOut" => Some(Self::ItemStorageOut),
            "ItemStorageInfo" => Some(Self::ItemStorageInfo),
            "EquipStoragePut" => Some(Self::EquipStoragePut),
            "EquipStorageOut" => Some(Self::EquipStorageOut),
            "EquipStorageInfo" => Some(Self::EquipStorageInfo),
            "EquipStorageAddSlot" => Some(Self::EquipStorageAddSlot),
            "FieldMonsterEvent" => Some(Self::FieldMonsterEvent),
            "FieldMonsterReward" => Some(Self::FieldMonsterReward),
            "FieldMonsterDamage" => Some(Self::FieldMonsterDamage),
            "PvpBattleUserInfo" => Some(Self::PvpBattleUserInfo),
            "PvpBattleDeckInfo" => Some(Self::PvpBattleDeckInfo),
            "PvpBattleDeckSave" => Some(Self::PvpBattleDeckSave),
            "PvpBattleMatching" => Some(Self::PvpBattleMatching),
            "PvpBattleStart" => Some(Self::PvpBattleStart),
            "PvpBattleEnd" => Some(Self::PvpBattleEnd),
            "PvpBattleReward" => Some(Self::PvpBattleReward),
            "PvpBattleRanking" => Some(Self::PvpBattleRanking),
            "PvpBattleRankUserDetail" => Some(Self::PvpBattleRankUserDetail),
            "FieldObjecPositionUpdate" => Some(Self::FieldObjecPositionUpdate),
            "CharImmortal" => Some(Self::CharImmortal),
            "PvpBattleHistory" => Some(Self::PvpBattleHistory),
            "PvpBattleHistoryDeckInfo" => Some(Self::PvpBattleHistoryDeckInfo),
            "CharClassUp" => Some(Self::CharClassUp),
            "TimePause" => Some(Self::TimePause),
            "TutorialInfo" => Some(Self::TutorialInfo),
            "TutorialClear" => Some(Self::TutorialClear),
            "ActiveMiniMap" => Some(Self::ActiveMiniMap),
            "PackPreviewInfo" => Some(Self::PackPreviewInfo),
            "EquipSmelting" => Some(Self::EquipSmelting),
            "ReputationInfo" => Some(Self::ReputationInfo),
            "ShopOpen" => Some(Self::ShopOpen),
            "DispatchReward" => Some(Self::DispatchReward),
            "InnOpen" => Some(Self::InnOpen),
            "HuntingGroundEnter" => Some(Self::HuntingGroundEnter),
            "PictorialBookInfo" => Some(Self::PictorialBookInfo),
            "EvilCastleInfo" => Some(Self::EvilCastleInfo),
            "EvilCastleEnter" => Some(Self::EvilCastleEnter),
            "EvilCastleRakingList" => Some(Self::EvilCastleRakingList),
            "EvilCastleStageClearReward" => Some(Self::EvilCastleStageClearReward),
            "EvilCastleStageRankingInfo" => Some(Self::EvilCastleStageRankingInfo),
            "ScheduleInfo" => Some(Self::ScheduleInfo),
            "MissionInfo" => Some(Self::MissionInfo),
            "MissionUpdate" => Some(Self::MissionUpdate),
            "MissionClear" => Some(Self::MissionClear),
            "NotusechargeCost" => Some(Self::NotusechargeCost),
            "MissionSectionReward" => Some(Self::MissionSectionReward),
            "ChargeCostInfo" => Some(Self::ChargeCostInfo),
            "PassInfo" => Some(Self::PassInfo),
            "EvilCastlePing" => Some(Self::EvilCastlePing),
            "PassReward" => Some(Self::PassReward),
            "EventMissionInfo" => Some(Self::EventMissionInfo),
            "NoneUse128" => Some(Self::NoneUse128),
            "PassBuy" => Some(Self::PassBuy),
            "ServerNowTime" => Some(Self::ServerNowTime),
            "MailInfo" => Some(Self::MailInfo),
            "MailOpen" => Some(Self::MailOpen),
            "CharExpiry" => Some(Self::CharExpiry),
            "HuntingGroundInfo" => Some(Self::HuntingGroundInfo),
            "EvilCastleRewardInfo" => Some(Self::EvilCastleRewardInfo),
            "PvpSeasonReward" => Some(Self::PvpSeasonReward),
            "QuestMaxClearInfo" => Some(Self::QuestMaxClearInfo),
            "MailHistoryInfo" => Some(Self::MailHistoryInfo),
            "FieldMonsterRegen" => Some(Self::FieldMonsterRegen),
            "CashMailInfo" => Some(Self::CashMailInfo),
            "BattleVerify" => Some(Self::BattleVerify),
            "BattleVerifyState" => Some(Self::BattleVerifyState),
            "UseRandomBox" => Some(Self::UseRandomBox),
            "FieldObjectPreview" => Some(Self::FieldObjectPreview),
            "GachaInfo" => Some(Self::GachaInfo),
            "GachaBuy" => Some(Self::GachaBuy),
            "GachaPointExchange" => Some(Self::GachaPointExchange),
            "CharSpecialScoutInfo" => Some(Self::CharSpecialScoutInfo),
            "CharSpecialScoutBuy" => Some(Self::CharSpecialScoutBuy),
            "CharSpecialScoutReset" => Some(Self::CharSpecialScoutReset),
            "EventReward" => Some(Self::EventReward),
            "EquipsUse" => Some(Self::EquipsUse),
            "LeaveUser" => Some(Self::LeaveUser),
            "CancelLeaveUser" => Some(Self::CancelLeaveUser),
            "PlatformLogin" => Some(Self::PlatformLogin),
            "SelectPlatformOtherData" => Some(Self::SelectPlatformOtherData),
            "SkyWayInfo" => Some(Self::SkyWayInfo),
            "SkyWayEnter" => Some(Self::SkyWayEnter),
            "SkyWayScheduleInfo" => Some(Self::SkyWayScheduleInfo),
            "EventScheduleInfo" => Some(Self::EventScheduleInfo),
            "AllCharRefresh" => Some(Self::AllCharRefresh),
            "AchievementInfo" => Some(Self::AchievementInfo),
            "AchievementUpdate" => Some(Self::AchievementUpdate),
            "AchievementClear" => Some(Self::AchievementClear),
            "FieldTrapInfo" => Some(Self::FieldTrapInfo),
            "InteractionTrigger" => Some(Self::InteractionTrigger),
            "JpUser" => Some(Self::JpUser),
            "JpUserInfo" => Some(Self::JpUserInfo),
            "GachaBuyPreview" => Some(Self::GachaBuyPreview),
            "EquipSequenceUpgrade" => Some(Self::EquipSequenceUpgrade),
            "EquipSequenceSmelting" => Some(Self::EquipSequenceSmelting),
            "PresetInfo" => Some(Self::PresetInfo),
            "PresetSave" => Some(Self::PresetSave),
            "PresetAddSlot" => Some(Self::PresetAddSlot),
            "BattleEndTest" => Some(Self::BattleEndTest),
            "EventExchangeInfo" => Some(Self::EventExchangeInfo),
            "EventExchangeReward" => Some(Self::EventExchangeReward),
            "EventExchangeNextPageOpen" => Some(Self::EventExchangeNextPageOpen),
            "BalanceVersionCheck" => Some(Self::BalanceVersionCheck),
            "LogoutUser" => Some(Self::LogoutUser),
            "GachaPointManualExchange" => Some(Self::GachaPointManualExchange),
            "HuntDispatchInfo" => Some(Self::HuntDispatchInfo),
            "HuntDispatchStart" => Some(Self::HuntDispatchStart),
            "HuntDispatchEnd" => Some(Self::HuntDispatchEnd),
            "EquipOptionReRoll" => Some(Self::EquipOptionReRoll),
            "EquipOptionReRollConfirm" => Some(Self::EquipOptionReRollConfirm),
            "HuntDispatchRewardPreview" => Some(Self::HuntDispatchRewardPreview),
            "NoticeDetailInfo" => Some(Self::NoticeDetailInfo),
            "MonsterHuntUserInfo" => Some(Self::MonsterHuntUserInfo),
            "MonsterHuntRankInfo" => Some(Self::MonsterHuntRankInfo),
            "GachaSelectionSave" => Some(Self::GachaSelectionSave),
            "PersonalInfo" => Some(Self::PersonalInfo),
            "EvilCastleTowerInfo" => Some(Self::EvilCastleTowerInfo),
            "GachaLogInfo" => Some(Self::GachaLogInfo),
            "StatueObjectReward" => Some(Self::StatueObjectReward),
            "LikeUser" => Some(Self::LikeUser),
            "FriendInfoList" => Some(Self::FriendInfoList),
            "FriendSend" => Some(Self::FriendSend),
            "FriendAccept" => Some(Self::FriendAccept),
            "FriendRefuse" => Some(Self::FriendRefuse),
            "FriendRemove" => Some(Self::FriendRemove),
            "FriendSendList" => Some(Self::FriendSendList),
            "FriendReceiveList" => Some(Self::FriendReceiveList),
            "FriendRecommend" => Some(Self::FriendRecommend),
            "FriendSearch" => Some(Self::FriendSearch),
            "FriendSendRemove" => Some(Self::FriendSendRemove),
            "PackEventBattleInfo" => Some(Self::PackEventBattleInfo),
            "UserContentsInfo" => Some(Self::UserContentsInfo),
            "UserContentsInfoOption" => Some(Self::UserContentsInfoOption),
            "UpdateUserContentsInfoOption" => Some(Self::UpdateUserContentsInfoOption),
            "MyLikeInfo" => Some(Self::MyLikeInfo),
            "UserGreetingChange" => Some(Self::UserGreetingChange),
            "PackEventStoryInfo" => Some(Self::PackEventStoryInfo),
            "PackEventStoryClear" => Some(Self::PackEventStoryClear),
            "EventHubInfoResponse" => Some(Self::EventHubInfoResponse),
            "MiniGameBoardInfo" => Some(Self::MiniGameBoardInfo),
            "MiniGameBoardPlay" => Some(Self::MiniGameBoardPlay),
            "UserTitleChange" => Some(Self::UserTitleChange),
            "PackRewardObjectCount" => Some(Self::PackRewardObjectCount),
            "PackSubQuestClearInfo" => Some(Self::PackSubQuestClearInfo),
            "MyRoomUserInfo" => Some(Self::MyRoomUserInfo),
            "MyRoomSave" => Some(Self::MyRoomSave),
            "MyRoomSearchFriend" => Some(Self::MyRoomSearchFriend),
            "MyRoomSearchRecommend" => Some(Self::MyRoomSearchRecommend),
            "MyRoomItemInfo" => Some(Self::MyRoomItemInfo),
            "NoneUse233" => Some(Self::NoneUse233),
            "MyRoomNameChange" => Some(Self::MyRoomNameChange),
            "MyRoomPrimaryChange" => Some(Self::MyRoomPrimaryChange),
            "TotalWarInfo" => Some(Self::TotalWarInfo),
            "TotalWarDeckInfo" => Some(Self::TotalWarDeckInfo),
            "TotalWarDeckSave" => Some(Self::TotalWarDeckSave),
            "TotalWarDeckPresetInfo" => Some(Self::TotalWarDeckPresetInfo),
            "TotalWarDeckPresetSave" => Some(Self::TotalWarDeckPresetSave),
            "TotalWarDeckPresetSlotAdd" => Some(Self::TotalWarDeckPresetSlotAdd),
            "TotalWarReward" => Some(Self::TotalWarReward),
            "TotalWarBattleStart" => Some(Self::TotalWarBattleStart),
            "TotalWarBattleEnd" => Some(Self::TotalWarBattleEnd),
            "MyRoomShopInfo" => Some(Self::MyRoomShopInfo),
            "MyRoomShopBuy" => Some(Self::MyRoomShopBuy),
            "MiniGameFieldInfo" => Some(Self::MiniGameFieldInfo),
            "MiniGameFieldStart" => Some(Self::MiniGameFieldStart),
            "MiniGameFieldScore" => Some(Self::MiniGameFieldScore),
            "MiniGameFieldEnd" => Some(Self::MiniGameFieldEnd),
            "MiniGameFieldQuickReward" => Some(Self::MiniGameFieldQuickReward),
            "TotalWarRewardState" => Some(Self::TotalWarRewardState),
            "EquipPresetInfo" => Some(Self::EquipPresetInfo),
            "EquipPresetSave" => Some(Self::EquipPresetSave),
            "EquipsClear" => Some(Self::EquipsClear),
            "MiniGameBingoInfo" => Some(Self::MiniGameBingoInfo),
            "MiniGameBingoPlay" => Some(Self::MiniGameBingoPlay),
            "SaveTotalBattlePower" => Some(Self::SaveTotalBattlePower),
            "EquipPresetNameChange" => Some(Self::EquipPresetNameChange),
            "FieldObjectRewardList" => Some(Self::FieldObjectRewardList),
            "QuickBattle" => Some(Self::QuickBattle),
            "AlchemyBatch" => Some(Self::AlchemyBatch),
            "MonsterHuntDeckInfo" => Some(Self::MonsterHuntDeckInfo),
            "MonsterHuntDeckSave" => Some(Self::MonsterHuntDeckSave),
            "MonsterHuntChangeTeam" => Some(Self::MonsterHuntChangeTeam),
            "MonsterHuntQuickBattle" => Some(Self::MonsterHuntQuickBattle),
            "CostumePotentialConnect" => Some(Self::CostumePotentialConnect),
            "CostumeNodeActivation" => Some(Self::CostumeNodeActivation),
            "PopularCostumeInfo" => Some(Self::PopularCostumeInfo),
            "ClientCustomLog" => Some(Self::ClientCustomLog),
            "UseResourceItem" => Some(Self::UseResourceItem),
            "FieldDeckInfo" => Some(Self::FieldDeckInfo),
            "FieldDeckSave" => Some(Self::FieldDeckSave),
            "Overwhelm" => Some(Self::Overwhelm),
            "EquipBatchUse" => Some(Self::EquipBatchUse),
            "PvpBattleOnceRewardInfo" => Some(Self::PvpBattleOnceRewardInfo),
            "PresetInfoChange" => Some(Self::PresetInfoChange),
            "EvilCastleRogueLikeInfo" => Some(Self::EvilCastleRogueLikeInfo),
            "EvilCastleRogueLikeEnter" => Some(Self::EvilCastleRogueLikeEnter),
            "EvilCastleRogueLikeGiveUp" => Some(Self::EvilCastleRogueLikeGiveUp),
            "EvilCastleRogueLikeRoomEnter" => Some(Self::EvilCastleRogueLikeRoomEnter),
            "EvilCastleRogueLikeSelectReward" => Some(Self::EvilCastleRogueLikeSelectReward),
            "EvilCastleRogueLikeRewardReRoll" => Some(Self::EvilCastleRogueLikeRewardReRoll),
            "EvilCastleRogueLikeDeckSave" => Some(Self::EvilCastleRogueLikeDeckSave),
            "ClearPackageReward" => Some(Self::ClearPackageReward),
            "BattleRetryPreviousTurn" => Some(Self::BattleRetryPreviousTurn),
            "SaveFieldCharControlDeckType" => Some(Self::SaveFieldCharControlDeckType),
            "CommunityRewardInfo" => Some(Self::CommunityRewardInfo),
            "CommunityReward" => Some(Self::CommunityReward),
            "GuildRaidMainInfo" => Some(Self::GuildRaidMainInfo),
            "GuildRaidNormalBattleInfo" => Some(Self::GuildRaidNormalBattleInfo),
            "GuildRaidBossBattleInfo" => Some(Self::GuildRaidBossBattleInfo),
            "GuildRaidBossQuickBattle" => Some(Self::GuildRaidBossQuickBattle),
            "GuildCreate" => Some(Self::GuildCreate),
            "GuildInfo" => Some(Self::GuildInfo),
            "GuildLeave" => Some(Self::GuildLeave),
            "GuildRecommend" => Some(Self::GuildRecommend),
            "GuildJoin" => Some(Self::GuildJoin),
            "GuildAccept" => Some(Self::GuildAccept),
            "GuildJoinRefuse" => Some(Self::GuildJoinRefuse),
            "GuildMemberBan" => Some(Self::GuildMemberBan),
            "GuildMemberRoleEdit" => Some(Self::GuildMemberRoleEdit),
            "GuildInfoEdit" => Some(Self::GuildInfoEdit),
            "GuildSearch" => Some(Self::GuildSearch),
            "GuildSupporterList" => Some(Self::GuildSupporterList),
            "GuildRaidMemberRanking" => Some(Self::GuildRaidMemberRanking),
            "GuildRaidSeasonReward" => Some(Self::GuildRaidSeasonReward),
            "GuildJoinSendCancel" => Some(Self::GuildJoinSendCancel),
            "GuildRaidDeckInfo" => Some(Self::GuildRaidDeckInfo),
            "GuildRaidDeckSave" => Some(Self::GuildRaidDeckSave),
            "GuildJoinRequestInfo" => Some(Self::GuildJoinRequestInfo),
            "GuildDeleteCancel" => Some(Self::GuildDeleteCancel),
            "GuildRaidBossBattleEnter" => Some(Self::GuildRaidBossBattleEnter),
            "EvilCastleRogueLikeBattleCharChange" => {
                Some(Self::EvilCastleRogueLikeBattleCharChange)
            }
            "EvilCastleRogueLikeEventSelect" => Some(Self::EvilCastleRogueLikeEventSelect),
            "EvilCastleRogueLikeEventChoice" => Some(Self::EvilCastleRogueLikeEventChoice),
            "EvilCastleRogueLikeShopBuy" => Some(Self::EvilCastleRogueLikeShopBuy),
            "EvilCastleRogueLikeShopReRoll" => Some(Self::EvilCastleRogueLikeShopReRoll),
            "EvilCastleRogueLikeShopExit" => Some(Self::EvilCastleRogueLikeShopExit),
            "EvilCastleRogueLikeGrowth" => Some(Self::EvilCastleRogueLikeGrowth),
            "EvilCastleRogueLikeGiveUpInfo" => Some(Self::EvilCastleRogueLikeGiveUpInfo),
            "EvilCastleRogueLikeAllUserScoreInfo" => {
                Some(Self::EvilCastleRogueLikeAllUserScoreInfo)
            }
            "EvilCastleRogueLikeRankInfo" => Some(Self::EvilCastleRogueLikeRankInfo),
            "EvilCastleRogueLikeSeasonReward" => Some(Self::EvilCastleRogueLikeSeasonReward),
            "MiniGameRunInfo" => Some(Self::MiniGameRunInfo),
            "MiniGameRunStart" => Some(Self::MiniGameRunStart),
            "MiniGameRunEnd" => Some(Self::MiniGameRunEnd),
            "MiniGameRunQuickReward" => Some(Self::MiniGameRunQuickReward),
            "GuildInitInfo" => Some(Self::GuildInitInfo),
            "GuildSupporterAdd" => Some(Self::GuildSupporterAdd),
            "GuildSupporterDelete" => Some(Self::GuildSupporterDelete),
            "GuildUpdateActionInfo" => Some(Self::GuildUpdateActionInfo),
            "CharImprintInfo" => Some(Self::CharImprintInfo),
            "CharImprintLevelUp" => Some(Self::CharImprintLevelUp),
            "CharAwakeActive" => Some(Self::CharAwakeActive),
            "GuildRaidBossBattleHistory" => Some(Self::GuildRaidBossBattleHistory),
            "EvilCastleRogueLikeQuickBattle" => Some(Self::EvilCastleRogueLikeQuickBattle),
            "GuildSupporterInfo" => Some(Self::GuildSupporterInfo),
            "EvilCastleRogueLikeCostumeUpgrade" => Some(Self::EvilCastleRogueLikeCostumeUpgrade),
            "MiniPuzzleInfo" => Some(Self::MiniPuzzleInfo),
            "MiniPuzzleOpen" => Some(Self::MiniPuzzleOpen),
            "MiniPuzzleAllOpen" => Some(Self::MiniPuzzleAllOpen),
            "MiniPuzzleRenew" => Some(Self::MiniPuzzleRenew),
            "EvilCastleRogueLikeRelicMix" => Some(Self::EvilCastleRogueLikeRelicMix),
            "MiniGameSurvivalInfo" => Some(Self::MiniGameSurvivalInfo),
            "MiniGameSurvivalStart" => Some(Self::MiniGameSurvivalStart),
            "MiniGameSurvivalEnd" => Some(Self::MiniGameSurvivalEnd),
            "CafeteriaInfo" => Some(Self::CafeteriaInfo),
            "CafeteriaSpawnReset" => Some(Self::CafeteriaSpawnReset),
            "CafeteriaLevelUp" => Some(Self::CafeteriaLevelUp),
            "CafeteriaManageItemAdd" => Some(Self::CafeteriaManageItemAdd),
            "CafeteriaRegularCostumeInteractionReward" => {
                Some(Self::CafeteriaRegularCostumeInteractionReward)
            }
            "CafeteriaRegularCostumeInteractionAllReward" => {
                Some(Self::CafeteriaRegularCostumeInteractionAllReward)
            }
            "CafeteriaCumulativeReward" => Some(Self::CafeteriaCumulativeReward),
            "CafeteriaRegularCostumeNoteInfo" => Some(Self::CafeteriaRegularCostumeNoteInfo),
            "CafeteriaRegularCostumeNoteReward" => Some(Self::CafeteriaRegularCostumeNoteReward),
            "CafeteriaRegularCostumeNoteAllReward" => {
                Some(Self::CafeteriaRegularCostumeNoteAllReward)
            }
            "DatingInfo" => Some(Self::DatingInfo),
            "DatingEpisodeClear" => Some(Self::DatingEpisodeClear),
            "DatingMessageUpdate" => Some(Self::DatingMessageUpdate),
            "MiniGameSurvivalPlay" => Some(Self::MiniGameSurvivalPlay),
            "MiniGameSurvivalSkillUp" => Some(Self::MiniGameSurvivalSkillUp),
            "MiniGameSurvivalQuickReward" => Some(Self::MiniGameSurvivalQuickReward),
            "RootSortIdInfo" => Some(Self::RootSortIdInfo),
            "MiniGameSurvivalRanking" => Some(Self::MiniGameSurvivalRanking),
            "MiniGameSurvivalCharUpgrade" => Some(Self::MiniGameSurvivalCharUpgrade),
            "MiniGameSurvivalSkillSelectList" => Some(Self::MiniGameSurvivalSkillSelectList),
            "CafeteriaIntroductionStoryReward" => Some(Self::CafeteriaIntroductionStoryReward),
            "GuildRaidNormalBattleHistoryInfo" => Some(Self::GuildRaidNormalBattleHistoryInfo),
            "GuildRaidMemberPlayHistoryInfo" => Some(Self::GuildRaidMemberPlayHistoryInfo),
            "CafeteriaDailyConnectionCostumeRefresh" => {
                Some(Self::CafeteriaDailyConnectionCostumeRefresh)
            }
            "CafeteriaRewardReceiptTimeUpdateUsingCheat" => {
                Some(Self::CafeteriaRewardReceiptTimeUpdateUsingCheat)
            }
            "MiniGameSichuanInfo" => Some(Self::MiniGameSichuanInfo),
            "MiniGameSichuanStart" => Some(Self::MiniGameSichuanStart),
            "MiniGameSichuanEnd" => Some(Self::MiniGameSichuanEnd),
            "GuildNoticeInfo" => Some(Self::GuildNoticeInfo),
            "GuildNoticeUpdate" => Some(Self::GuildNoticeUpdate),
            "MiniGameSichuanRanking" => Some(Self::MiniGameSichuanRanking),
            "EquipFromMakingToBreak" => Some(Self::EquipFromMakingToBreak),
            "EquipFromUpgradeToBreak" => Some(Self::EquipFromUpgradeToBreak),
            "EquipFromMakingToUpgrade" => Some(Self::EquipFromMakingToUpgrade),
            "HuntingGroundInfoList" => Some(Self::HuntingGroundInfoList),
            "BattleExit" => Some(Self::BattleExit),
            "MiniGameSurvivalCharUpgradeReset" => Some(Self::MiniGameSurvivalCharUpgradeReset),
            "MiniGameHubInfo" => Some(Self::MiniGameHubInfo),
            "MiniGameDefenseInfo" => Some(Self::MiniGameDefenseInfo),
            "MiniGameDefenseStart" => Some(Self::MiniGameDefenseStart),
            "MiniGameDefenseEnd" => Some(Self::MiniGameDefenseEnd),
            "RecommendDeckInfo" => Some(Self::RecommendDeckInfo),
            "DeckCostumeSettingInfo" => Some(Self::DeckCostumeSettingInfo),
            "DeckCostumeSettingSave" => Some(Self::DeckCostumeSettingSave),
            "GuildRaidPresetSlotAdd" => Some(Self::GuildRaidPresetSlotAdd),
            "MonsterHuntPresetSlotAdd" => Some(Self::MonsterHuntPresetSlotAdd),
            "PvpContentsItemRenew" => Some(Self::PvpContentsItemRenew),
            "TotalWarContentsItemRenew" => Some(Self::TotalWarContentsItemRenew),
            "GuildRaidPresetInfo" => Some(Self::GuildRaidPresetInfo),
            "GuildRaidPresetSave" => Some(Self::GuildRaidPresetSave),
            "MonsterHuntPresetInfo" => Some(Self::MonsterHuntPresetInfo),
            "MonsterHuntPresetSave" => Some(Self::MonsterHuntPresetSave),
            "EquipMarkSet" => Some(Self::EquipMarkSet),
            "EquipMarkDelete" => Some(Self::EquipMarkDelete),
            "PresetUse" => Some(Self::PresetUse),
            "MonsterHuntPresetUse" => Some(Self::MonsterHuntPresetUse),
            "GuildRaidPresetUse" => Some(Self::GuildRaidPresetUse),
            "RecommendDeckUserOptionSave" => Some(Self::RecommendDeckUserOptionSave),
            "CafeteriaRareNpcInteractionReward" => Some(Self::CafeteriaRareNpcInteractionReward),
            "CafeteriaEventNpcInteractionReward" => Some(Self::CafeteriaEventNpcInteractionReward),
            "MiniGameRouletteInfo" => Some(Self::MiniGameRouletteInfo),
            "MiniGameRouletteDraw" => Some(Self::MiniGameRouletteDraw),
            "MyRoomExpand" => Some(Self::MyRoomExpand),
            "MyRoomMove" => Some(Self::MyRoomMove),
            "MyRoomLike" => Some(Self::MyRoomLike),
            "MiniGameActionInfo" => Some(Self::MiniGameActionInfo),
            "MiniGameActionStart" => Some(Self::MiniGameActionStart),
            "MiniGameActionEnd" => Some(Self::MiniGameActionEnd),
            "MyRoomSearchGuild" => Some(Self::MyRoomSearchGuild),
            "PrestigeSkinSet" => Some(Self::PrestigeSkinSet),
            "MiniGameRhythmInfo" => Some(Self::MiniGameRhythmInfo),
            "MiniGameRhythmPlayStart" => Some(Self::MiniGameRhythmPlayStart),
            "MiniGameRhythmPlayEnd" => Some(Self::MiniGameRhythmPlayEnd),
            "CashShopPurchaseCountInfo" => Some(Self::CashShopPurchaseCountInfo),
            "CharGrowth" => Some(Self::CharGrowth),
            "SupporterDetail" => Some(Self::SupporterDetail),
            "SupporterRegister" => Some(Self::SupporterRegister),
            "SupporterRemove" => Some(Self::SupporterRemove),
            "SupporterBorrow" => Some(Self::SupporterBorrow),
            "SupporterStatus" => Some(Self::SupporterStatus),
            "SupporterBattleInfo" => Some(Self::SupporterBattleInfo),
            "EvilCastleDailyReward" => Some(Self::EvilCastleDailyReward),
            "EvilCastleDailyRewardState" => Some(Self::EvilCastleDailyRewardState),
            "SupporterReward" => Some(Self::SupporterReward),
            "SupporterInfo" => Some(Self::SupporterInfo),
            "IdCardSave" => Some(Self::IdCardSave),
            "IdCardShopInfo" => Some(Self::IdCardShopInfo),
            "IdCardShopBuy" => Some(Self::IdCardShopBuy),
            "IdCardPresetSave" => Some(Self::IdCardPresetSave),
            "IdCardPresetInfo" => Some(Self::IdCardPresetInfo),
            "IdCardPresetDelete" => Some(Self::IdCardPresetDelete),
            "IdCardRecovery" => Some(Self::IdCardRecovery),
            "GuildRaidBossPracticeBattleEnter" => Some(Self::GuildRaidBossPracticeBattleEnter),
            "EvilCastleRogueLikeBattleEndPreview" => {
                Some(Self::EvilCastleRogueLikeBattleEndPreview)
            }
            _ => None,
        }
    }

    /// Parse from packet code
    pub const fn from_code(code: i32) -> Option<Self> {
        match code {
            0 => Some(Self::Common),
            1 => Some(Self::PingCheck),
            2 => Some(Self::JoinUser),
            3 => Some(Self::LoginUser),
            4 => Some(Self::PackInfo),
            5 => Some(Self::PackInGameInfo),
            6 => Some(Self::PackBuy),
            7 => Some(Self::SaveUserPosition),
            8 => Some(Self::DeckInfo),
            9 => Some(Self::CharInfo),
            10 => Some(Self::DeckSave),
            11 => Some(Self::CharAllRevival),
            12 => Some(Self::CharLevelUp),
            13 => Some(Self::MercenaryScout),
            14 => Some(Self::BattleStart),
            15 => Some(Self::BattleEnd),
            16 => Some(Self::QuestInfo),
            17 => Some(Self::QuestAccept),
            18 => Some(Self::QuestClear),
            19 => Some(Self::QuestUpdate),
            20 => Some(Self::QuestGiveUp),
            21 => Some(Self::ItemInfo),
            22 => Some(Self::EatFood),
            23 => Some(Self::ItemDump),
            24 => Some(Self::InvenAddSlot),
            25 => Some(Self::StorageAddSlot),
            26 => Some(Self::ItemStorageUpdate),
            27 => Some(Self::EatFoodAuto),
            28 => Some(Self::FieldObjectInfo),
            29 => Some(Self::FieldObjectReward),
            30 => Some(Self::FieldObjectRespawn),
            31 => Some(Self::WaypointInfo),
            32 => Some(Self::WaypointSave),
            33 => Some(Self::WaypointUse),
            34 => Some(Self::EquipInfo),
            35 => Some(Self::EquipUse),
            36 => Some(Self::EquipClear),
            37 => Some(Self::EquipUpgrade),
            38 => Some(Self::EquipLock),
            39 => Some(Self::EquipAddSlot),
            40 => Some(Self::CostumeInfo),
            41 => Some(Self::CostumeUse),
            42 => Some(Self::CostumeUpgrade),
            43 => Some(Self::TalentSkillUse),
            44 => Some(Self::TalentSkillUpgrade),
            45 => Some(Self::EquipChange),
            46 => Some(Self::RecipeInfo),
            47 => Some(Self::CookingResearch),
            48 => Some(Self::Cooking),
            49 => Some(Self::Alchemy),
            50 => Some(Self::EquipMaking),
            51 => Some(Self::MonsterInfo),
            52 => Some(Self::BattleEnter),
            53 => Some(Self::ShopInfo),
            54 => Some(Self::ShopBuy),
            55 => Some(Self::ShopSell),
            56 => Some(Self::EquipBreak),
            57 => Some(Self::BattleGiveUp),
            58 => Some(Self::BattleRetry),
            59 => Some(Self::FieldObjectResearch),
            60 => Some(Self::CashShopInfo),
            61 => Some(Self::CashShopBuy),
            62 => Some(Self::CharHealing),
            63 => Some(Self::TrapDamage),
            64 => Some(Self::TodayQuestInfo),
            65 => Some(Self::CharPartnerInfo),
            66 => Some(Self::CharPartnerReward),
            67 => Some(Self::CharPartnerStoryReward),
            68 => Some(Self::NpcReputationInfo),
            69 => Some(Self::NpcReputationRecovery),
            70 => Some(Self::QuestImmortalReset),
            71 => Some(Self::TalentSlotSave),
            72 => Some(Self::PackJamEvent),
            73 => Some(Self::UserLevelReward),
            74 => Some(Self::UserNicknameChange),
            75 => Some(Self::UserPortraitChange),
            76 => Some(Self::ItemStoragePut),
            77 => Some(Self::ItemStorageOut),
            78 => Some(Self::ItemStorageInfo),
            79 => Some(Self::EquipStoragePut),
            80 => Some(Self::EquipStorageOut),
            81 => Some(Self::EquipStorageInfo),
            82 => Some(Self::EquipStorageAddSlot),
            83 => Some(Self::FieldMonsterEvent),
            84 => Some(Self::FieldMonsterReward),
            85 => Some(Self::FieldMonsterDamage),
            86 => Some(Self::PvpBattleUserInfo),
            87 => Some(Self::PvpBattleDeckInfo),
            88 => Some(Self::PvpBattleDeckSave),
            89 => Some(Self::PvpBattleMatching),
            90 => Some(Self::PvpBattleStart),
            91 => Some(Self::PvpBattleEnd),
            92 => Some(Self::PvpBattleReward),
            93 => Some(Self::PvpBattleRanking),
            94 => Some(Self::PvpBattleRankUserDetail),
            95 => Some(Self::FieldObjecPositionUpdate),
            96 => Some(Self::CharImmortal),
            97 => Some(Self::PvpBattleHistory),
            98 => Some(Self::PvpBattleHistoryDeckInfo),
            99 => Some(Self::CharClassUp),
            100 => Some(Self::TimePause),
            101 => Some(Self::TutorialInfo),
            102 => Some(Self::TutorialClear),
            103 => Some(Self::ActiveMiniMap),
            104 => Some(Self::PackPreviewInfo),
            105 => Some(Self::EquipSmelting),
            106 => Some(Self::ReputationInfo),
            107 => Some(Self::ShopOpen),
            108 => Some(Self::DispatchReward),
            109 => Some(Self::InnOpen),
            110 => Some(Self::HuntingGroundEnter),
            111 => Some(Self::PictorialBookInfo),
            112 => Some(Self::EvilCastleInfo),
            113 => Some(Self::EvilCastleEnter),
            114 => Some(Self::EvilCastleRakingList),
            115 => Some(Self::EvilCastleStageClearReward),
            116 => Some(Self::EvilCastleStageRankingInfo),
            117 => Some(Self::ScheduleInfo),
            118 => Some(Self::MissionInfo),
            119 => Some(Self::MissionUpdate),
            120 => Some(Self::MissionClear),
            121 => Some(Self::NotusechargeCost),
            122 => Some(Self::MissionSectionReward),
            123 => Some(Self::ChargeCostInfo),
            124 => Some(Self::PassInfo),
            125 => Some(Self::EvilCastlePing),
            126 => Some(Self::PassReward),
            127 => Some(Self::EventMissionInfo),
            128 => Some(Self::NoneUse128),
            129 => Some(Self::PassBuy),
            130 => Some(Self::ServerNowTime),
            131 => Some(Self::MailInfo),
            132 => Some(Self::MailOpen),
            133 => Some(Self::CharExpiry),
            134 => Some(Self::HuntingGroundInfo),
            135 => Some(Self::EvilCastleRewardInfo),
            136 => Some(Self::PvpSeasonReward),
            137 => Some(Self::QuestMaxClearInfo),
            138 => Some(Self::MailHistoryInfo),
            139 => Some(Self::FieldMonsterRegen),
            140 => Some(Self::CashMailInfo),
            141 => Some(Self::BattleVerify),
            142 => Some(Self::BattleVerifyState),
            143 => Some(Self::UseRandomBox),
            144 => Some(Self::FieldObjectPreview),
            145 => Some(Self::GachaInfo),
            146 => Some(Self::GachaBuy),
            147 => Some(Self::GachaPointExchange),
            148 => Some(Self::CharSpecialScoutInfo),
            149 => Some(Self::CharSpecialScoutBuy),
            150 => Some(Self::CharSpecialScoutReset),
            151 => Some(Self::EventReward),
            155 => Some(Self::EquipsUse),
            156 => Some(Self::LeaveUser),
            157 => Some(Self::CancelLeaveUser),
            158 => Some(Self::PlatformLogin),
            159 => Some(Self::SelectPlatformOtherData),
            160 => Some(Self::SkyWayInfo),
            161 => Some(Self::SkyWayEnter),
            162 => Some(Self::SkyWayScheduleInfo),
            163 => Some(Self::EventScheduleInfo),
            165 => Some(Self::AllCharRefresh),
            166 => Some(Self::AchievementInfo),
            167 => Some(Self::AchievementUpdate),
            168 => Some(Self::AchievementClear),
            171 => Some(Self::FieldTrapInfo),
            172 => Some(Self::InteractionTrigger),
            173 => Some(Self::JpUser),
            174 => Some(Self::JpUserInfo),
            175 => Some(Self::GachaBuyPreview),
            176 => Some(Self::EquipSequenceUpgrade),
            177 => Some(Self::EquipSequenceSmelting),
            178 => Some(Self::PresetInfo),
            179 => Some(Self::PresetSave),
            180 => Some(Self::PresetAddSlot),
            181 => Some(Self::BattleEndTest),
            183 => Some(Self::EventExchangeInfo),
            184 => Some(Self::EventExchangeReward),
            185 => Some(Self::EventExchangeNextPageOpen),
            186 => Some(Self::BalanceVersionCheck),
            187 => Some(Self::LogoutUser),
            188 => Some(Self::GachaPointManualExchange),
            189 => Some(Self::HuntDispatchInfo),
            190 => Some(Self::HuntDispatchStart),
            191 => Some(Self::HuntDispatchEnd),
            192 => Some(Self::EquipOptionReRoll),
            193 => Some(Self::EquipOptionReRollConfirm),
            194 => Some(Self::HuntDispatchRewardPreview),
            195 => Some(Self::NoticeDetailInfo),
            196 => Some(Self::MonsterHuntUserInfo),
            197 => Some(Self::MonsterHuntRankInfo),
            198 => Some(Self::GachaSelectionSave),
            199 => Some(Self::PersonalInfo),
            200 => Some(Self::EvilCastleTowerInfo),
            201 => Some(Self::GachaLogInfo),
            202 => Some(Self::StatueObjectReward),
            203 => Some(Self::LikeUser),
            204 => Some(Self::FriendInfoList),
            205 => Some(Self::FriendSend),
            206 => Some(Self::FriendAccept),
            207 => Some(Self::FriendRefuse),
            208 => Some(Self::FriendRemove),
            209 => Some(Self::FriendSendList),
            210 => Some(Self::FriendReceiveList),
            211 => Some(Self::FriendRecommend),
            212 => Some(Self::FriendSearch),
            213 => Some(Self::FriendSendRemove),
            214 => Some(Self::PackEventBattleInfo),
            215 => Some(Self::UserContentsInfo),
            216 => Some(Self::UserContentsInfoOption),
            217 => Some(Self::UpdateUserContentsInfoOption),
            218 => Some(Self::MyLikeInfo),
            219 => Some(Self::UserGreetingChange),
            220 => Some(Self::PackEventStoryInfo),
            221 => Some(Self::PackEventStoryClear),
            222 => Some(Self::EventHubInfoResponse),
            223 => Some(Self::MiniGameBoardInfo),
            224 => Some(Self::MiniGameBoardPlay),
            225 => Some(Self::UserTitleChange),
            226 => Some(Self::PackRewardObjectCount),
            227 => Some(Self::PackSubQuestClearInfo),
            228 => Some(Self::MyRoomUserInfo),
            229 => Some(Self::MyRoomSave),
            230 => Some(Self::MyRoomSearchFriend),
            231 => Some(Self::MyRoomSearchRecommend),
            232 => Some(Self::MyRoomItemInfo),
            233 => Some(Self::NoneUse233),
            234 => Some(Self::MyRoomNameChange),
            235 => Some(Self::MyRoomPrimaryChange),
            236 => Some(Self::TotalWarInfo),
            237 => Some(Self::TotalWarDeckInfo),
            238 => Some(Self::TotalWarDeckSave),
            239 => Some(Self::TotalWarDeckPresetInfo),
            240 => Some(Self::TotalWarDeckPresetSave),
            241 => Some(Self::TotalWarDeckPresetSlotAdd),
            242 => Some(Self::TotalWarReward),
            243 => Some(Self::TotalWarBattleStart),
            244 => Some(Self::TotalWarBattleEnd),
            245 => Some(Self::MyRoomShopInfo),
            246 => Some(Self::MyRoomShopBuy),
            247 => Some(Self::MiniGameFieldInfo),
            248 => Some(Self::MiniGameFieldStart),
            249 => Some(Self::MiniGameFieldScore),
            250 => Some(Self::MiniGameFieldEnd),
            251 => Some(Self::MiniGameFieldQuickReward),
            252 => Some(Self::TotalWarRewardState),
            253 => Some(Self::EquipPresetInfo),
            254 => Some(Self::EquipPresetSave),
            255 => Some(Self::EquipsClear),
            256 => Some(Self::MiniGameBingoInfo),
            257 => Some(Self::MiniGameBingoPlay),
            258 => Some(Self::SaveTotalBattlePower),
            259 => Some(Self::EquipPresetNameChange),
            260 => Some(Self::FieldObjectRewardList),
            261 => Some(Self::QuickBattle),
            262 => Some(Self::AlchemyBatch),
            263 => Some(Self::MonsterHuntDeckInfo),
            264 => Some(Self::MonsterHuntDeckSave),
            265 => Some(Self::MonsterHuntChangeTeam),
            266 => Some(Self::MonsterHuntQuickBattle),
            267 => Some(Self::CostumePotentialConnect),
            268 => Some(Self::CostumeNodeActivation),
            269 => Some(Self::PopularCostumeInfo),
            270 => Some(Self::ClientCustomLog),
            271 => Some(Self::UseResourceItem),
            273 => Some(Self::FieldDeckInfo),
            274 => Some(Self::FieldDeckSave),
            275 => Some(Self::Overwhelm),
            276 => Some(Self::EquipBatchUse),
            277 => Some(Self::PvpBattleOnceRewardInfo),
            278 => Some(Self::PresetInfoChange),
            279 => Some(Self::EvilCastleRogueLikeInfo),
            280 => Some(Self::EvilCastleRogueLikeEnter),
            281 => Some(Self::EvilCastleRogueLikeGiveUp),
            282 => Some(Self::EvilCastleRogueLikeRoomEnter),
            283 => Some(Self::EvilCastleRogueLikeSelectReward),
            284 => Some(Self::EvilCastleRogueLikeRewardReRoll),
            285 => Some(Self::EvilCastleRogueLikeDeckSave),
            286 => Some(Self::ClearPackageReward),
            287 => Some(Self::BattleRetryPreviousTurn),
            288 => Some(Self::SaveFieldCharControlDeckType),
            289 => Some(Self::CommunityRewardInfo),
            290 => Some(Self::CommunityReward),
            291 => Some(Self::GuildRaidMainInfo),
            292 => Some(Self::GuildRaidNormalBattleInfo),
            293 => Some(Self::GuildRaidBossBattleInfo),
            294 => Some(Self::GuildRaidBossQuickBattle),
            296 => Some(Self::GuildCreate),
            297 => Some(Self::GuildInfo),
            298 => Some(Self::GuildLeave),
            299 => Some(Self::GuildRecommend),
            300 => Some(Self::GuildJoin),
            301 => Some(Self::GuildAccept),
            302 => Some(Self::GuildJoinRefuse),
            303 => Some(Self::GuildMemberBan),
            304 => Some(Self::GuildMemberRoleEdit),
            305 => Some(Self::GuildInfoEdit),
            306 => Some(Self::GuildSearch),
            308 => Some(Self::GuildSupporterList),
            309 => Some(Self::GuildRaidMemberRanking),
            310 => Some(Self::GuildRaidSeasonReward),
            311 => Some(Self::GuildJoinSendCancel),
            312 => Some(Self::GuildRaidDeckInfo),
            313 => Some(Self::GuildRaidDeckSave),
            314 => Some(Self::GuildJoinRequestInfo),
            315 => Some(Self::GuildDeleteCancel),
            316 => Some(Self::GuildRaidBossBattleEnter),
            317 => Some(Self::EvilCastleRogueLikeBattleCharChange),
            318 => Some(Self::EvilCastleRogueLikeEventSelect),
            319 => Some(Self::EvilCastleRogueLikeEventChoice),
            320 => Some(Self::EvilCastleRogueLikeShopBuy),
            321 => Some(Self::EvilCastleRogueLikeShopReRoll),
            322 => Some(Self::EvilCastleRogueLikeShopExit),
            323 => Some(Self::EvilCastleRogueLikeGrowth),
            324 => Some(Self::EvilCastleRogueLikeGiveUpInfo),
            325 => Some(Self::EvilCastleRogueLikeAllUserScoreInfo),
            326 => Some(Self::EvilCastleRogueLikeRankInfo),
            327 => Some(Self::EvilCastleRogueLikeSeasonReward),
            328 => Some(Self::MiniGameRunInfo),
            329 => Some(Self::MiniGameRunStart),
            330 => Some(Self::MiniGameRunEnd),
            331 => Some(Self::MiniGameRunQuickReward),
            332 => Some(Self::GuildInitInfo),
            333 => Some(Self::GuildSupporterAdd),
            334 => Some(Self::GuildSupporterDelete),
            335 => Some(Self::GuildUpdateActionInfo),
            336 => Some(Self::CharImprintInfo),
            337 => Some(Self::CharImprintLevelUp),
            338 => Some(Self::CharAwakeActive),
            339 => Some(Self::GuildRaidBossBattleHistory),
            340 => Some(Self::EvilCastleRogueLikeQuickBattle),
            341 => Some(Self::GuildSupporterInfo),
            342 => Some(Self::EvilCastleRogueLikeCostumeUpgrade),
            343 => Some(Self::MiniPuzzleInfo),
            344 => Some(Self::MiniPuzzleOpen),
            345 => Some(Self::MiniPuzzleAllOpen),
            346 => Some(Self::MiniPuzzleRenew),
            347 => Some(Self::EvilCastleRogueLikeRelicMix),
            348 => Some(Self::MiniGameSurvivalInfo),
            349 => Some(Self::MiniGameSurvivalStart),
            350 => Some(Self::MiniGameSurvivalEnd),
            351 => Some(Self::CafeteriaInfo),
            352 => Some(Self::CafeteriaSpawnReset),
            353 => Some(Self::CafeteriaLevelUp),
            354 => Some(Self::CafeteriaManageItemAdd),
            355 => Some(Self::CafeteriaRegularCostumeInteractionReward),
            356 => Some(Self::CafeteriaRegularCostumeInteractionAllReward),
            357 => Some(Self::CafeteriaCumulativeReward),
            358 => Some(Self::CafeteriaRegularCostumeNoteInfo),
            359 => Some(Self::CafeteriaRegularCostumeNoteReward),
            360 => Some(Self::CafeteriaRegularCostumeNoteAllReward),
            361 => Some(Self::DatingInfo),
            362 => Some(Self::DatingEpisodeClear),
            363 => Some(Self::DatingMessageUpdate),
            364 => Some(Self::MiniGameSurvivalPlay),
            365 => Some(Self::MiniGameSurvivalSkillUp),
            366 => Some(Self::MiniGameSurvivalQuickReward),
            367 => Some(Self::RootSortIdInfo),
            368 => Some(Self::MiniGameSurvivalRanking),
            369 => Some(Self::MiniGameSurvivalCharUpgrade),
            370 => Some(Self::MiniGameSurvivalSkillSelectList),
            371 => Some(Self::CafeteriaIntroductionStoryReward),
            374 => Some(Self::GuildRaidNormalBattleHistoryInfo),
            375 => Some(Self::GuildRaidMemberPlayHistoryInfo),
            376 => Some(Self::CafeteriaDailyConnectionCostumeRefresh),
            377 => Some(Self::CafeteriaRewardReceiptTimeUpdateUsingCheat),
            378 => Some(Self::MiniGameSichuanInfo),
            379 => Some(Self::MiniGameSichuanStart),
            380 => Some(Self::MiniGameSichuanEnd),
            381 => Some(Self::GuildNoticeInfo),
            382 => Some(Self::GuildNoticeUpdate),
            383 => Some(Self::MiniGameSichuanRanking),
            384 => Some(Self::EquipFromMakingToBreak),
            385 => Some(Self::EquipFromUpgradeToBreak),
            386 => Some(Self::EquipFromMakingToUpgrade),
            387 => Some(Self::HuntingGroundInfoList),
            388 => Some(Self::BattleExit),
            389 => Some(Self::MiniGameSurvivalCharUpgradeReset),
            390 => Some(Self::MiniGameHubInfo),
            393 => Some(Self::MiniGameDefenseInfo),
            394 => Some(Self::MiniGameDefenseStart),
            395 => Some(Self::MiniGameDefenseEnd),
            396 => Some(Self::RecommendDeckInfo),
            397 => Some(Self::DeckCostumeSettingInfo),
            398 => Some(Self::DeckCostumeSettingSave),
            399 => Some(Self::GuildRaidPresetSlotAdd),
            400 => Some(Self::MonsterHuntPresetSlotAdd),
            401 => Some(Self::PvpContentsItemRenew),
            402 => Some(Self::TotalWarContentsItemRenew),
            403 => Some(Self::GuildRaidPresetInfo),
            404 => Some(Self::GuildRaidPresetSave),
            405 => Some(Self::MonsterHuntPresetInfo),
            406 => Some(Self::MonsterHuntPresetSave),
            407 => Some(Self::EquipMarkSet),
            408 => Some(Self::EquipMarkDelete),
            409 => Some(Self::PresetUse),
            410 => Some(Self::MonsterHuntPresetUse),
            411 => Some(Self::GuildRaidPresetUse),
            412 => Some(Self::RecommendDeckUserOptionSave),
            413 => Some(Self::CafeteriaRareNpcInteractionReward),
            414 => Some(Self::CafeteriaEventNpcInteractionReward),
            415 => Some(Self::MiniGameRouletteInfo),
            416 => Some(Self::MiniGameRouletteDraw),
            418 => Some(Self::MyRoomExpand),
            419 => Some(Self::MyRoomMove),
            420 => Some(Self::MyRoomLike),
            421 => Some(Self::MiniGameActionInfo),
            422 => Some(Self::MiniGameActionStart),
            423 => Some(Self::MiniGameActionEnd),
            424 => Some(Self::MyRoomSearchGuild),
            426 => Some(Self::PrestigeSkinSet),
            428 => Some(Self::MiniGameRhythmInfo),
            429 => Some(Self::MiniGameRhythmPlayStart),
            430 => Some(Self::MiniGameRhythmPlayEnd),
            432 => Some(Self::CashShopPurchaseCountInfo),
            433 => Some(Self::CharGrowth),
            434 => Some(Self::SupporterDetail),
            435 => Some(Self::SupporterRegister),
            436 => Some(Self::SupporterRemove),
            437 => Some(Self::SupporterBorrow),
            438 => Some(Self::SupporterStatus),
            439 => Some(Self::SupporterBattleInfo),
            440 => Some(Self::EvilCastleDailyReward),
            441 => Some(Self::EvilCastleDailyRewardState),
            442 => Some(Self::SupporterReward),
            443 => Some(Self::SupporterInfo),
            446 => Some(Self::IdCardSave),
            447 => Some(Self::IdCardShopInfo),
            448 => Some(Self::IdCardShopBuy),
            449 => Some(Self::IdCardPresetSave),
            450 => Some(Self::IdCardPresetInfo),
            451 => Some(Self::IdCardPresetDelete),
            452 => Some(Self::IdCardRecovery),
            453 => Some(Self::GuildRaidBossPracticeBattleEnter),
            466 => Some(Self::EvilCastleRogueLikeBattleEndPreview),
            _ => None,
        }
    }
}
